New Regular Expression Feature: what do you think?

A swapping-ground for Regular Expression syntax

New Regular Expression Feature: what do you think?

Postby Admin » Sat Jun 06, 2009 10:09 am

We are considering adding this feature to BulkRenameUtility: the ability to add multiple regular expressions match and replace within the same field. So instead of having to use two passes, it can all be done in one pass. Example:

Instead of:

First Pass
Match: ^(.*)\((\d{1}|)\)$
Replace: \100\2
Select all files to rename and rename them.

Second Pass
Match: ^(.*)\((\d{2}|)\)$
Replace: \10\2
Select all files to rename and rename them.

Use
Match: ^(.*)\((\d{1}|)\)$&&^(.*)\((\d{1}|)\)$
Replace: \100\2&&\10\2
Select all files to rename and rename them.

&& is the new separator for first pass and second pass. What do you think? thanks
Admin
Site Admin
 
Posts: 2354
Joined: Tue Mar 08, 2005 8:39 pm

Re: New Regular Expression Feature: what do you think?

Postby audiogalaxy » Thu Aug 20, 2009 5:21 am

Admin wrote:We are considering adding this feature to BulkRenameUtility: the ability to add multiple regular expressions match and replace within the same field. So instead of having to use two passes, it can all be done in one pass. Example:

Instead of:

First Pass
Match: ^(.*)\((\d{1}|)\)$
Replace: \100\2
Select all files to rename and rename them.

Second Pass
Match: ^(.*)\((\d{2}|)\)$
Replace: \10\2
Select all files to rename and rename them.

Use
Match: ^(.*)\((\d{1}|)\)$&&^(.*)\((\d{1}|)\)$
Replace: \100\2&&\10\2
Select all files to rename and rename them.

&& is the new separator for first pass and second pass. What do you think? thanks



it would be a greatly appreciated feature, expecially in BRC!
audiogalaxy
 
Posts: 23
Joined: Thu Nov 20, 2008 10:56 am

Re: New Regular Expression Feature: what do you think?

Postby ThanhLoan » Wed Dec 16, 2009 6:34 pm

Another feature would be very appreciated is the ability to use the Groups found in RegEx(1) in other functions.
Example : Add (Pre or Suffix) \1 \2 etc...

Regards
ThanhLoan
 
Posts: 7
Joined: Fri Dec 11, 2009 8:22 pm


Return to Regular Expressions