RegExp rename file remove characters after 25th

I've got a bunch of files that I need to rename. I want to keep the first 25 characters and remove all characters after the 25th. The number of characters to remove isn't fixed. It will vary depending on the length of the file name. Is this possible with a RegEx?

It's easier to do this by turning on Use preview list to build macros in the Rename dialog, and then simply making the edit you want to the first file.

In the New Name column, if you move the cursor to the position you want to delete from, then push Shift + End twice, it will highlight everything right of that point in all files (even if they have longer names), and you can then push Backspace or Del to remove that text from all files.

(That will also set the Macro Operations field to something like L25-* which you can edit to change the starting position, if you want to do it by number rather than visually. But you usually don't have to look at or edit the macro it generates.)

I should have pointed out in my original post, I am on version 11

Poor you :wink:

Try something like this (.{25}):

AFAIR V11 doesn't have the "Ignore extension" option, so you'll have to do this manually.