These forums are read-only. Please send questions and feedback by email.

Using REGEX expression in bulk file rename

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

Moderator: vuser

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

Using REGEX expression in bulk file rename

Postby dbrannick » Thu Aug 09, 2012 10:30 am

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: 286
Joined: Fri Apr 30, 2010 5:50 pm

Re: Using REGEX expression in bulk file rename

Postby FileViewer » Thu Aug 09, 2012 3:09 pm

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

Postby dbrannick » Mon Aug 13, 2012 8:16 am

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


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 3 guests