Page 1 of 1

Using REGEX expression in bulk file rename

Posted: Thu Aug 09, 2012 10:30 am
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.

Re: Using REGEX expression in bulk file rename

Posted: Thu Aug 09, 2012 3:09 pm
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.

Re: Using REGEX expression in bulk file rename

Posted: Mon Aug 13, 2012 8:16 am
by dbrannick
Thank you. This will work. I guess I didn't see that command.