Using REGEX expression in bulk file rename

Use this forum to ask any questions and to submit bug reports

Moderator: vuser

Post Reply
dbrannick
Posts: 22
Joined: Tue Feb 08, 2011 8:19 am

Using REGEX expression in bulk file rename

Post by dbrannick »

I am having to rename about 10,000 files changing dashes to underscores. I'm selecting all the files to be renamed then right clicking and selecting the filename option modify options (regex) to do this rename. The issue I'm having is that it only does a single pass rename. Meaning if there are multiple '_' found in the filename I have to repeatedly select the modify command until no more are found. Is there a way to force the modify command to find 'all' occurrences of a search pattern?
thanks.
FileViewer
Site Admin
Posts: 287
Joined: Fri Apr 30, 2010 5:50 pm

Re: Using REGEX expression in bulk file rename

Post by FileViewer »

Is there a way to force the modify command to find 'all' occurrences of a search pattern?
No.

However, if all you want to do is change all dashes to underscores, use the Translate option instead of Modify (Regex) - this will do what you want.
dbrannick
Posts: 22
Joined: Tue Feb 08, 2011 8:19 am

Re: Using REGEX expression in bulk file rename

Post by dbrannick »

Thank you. This will work. I guess I didn't see that command.
Post Reply