Page 1 of 1

[Batch Renamer] Format Subpattern

Posted: 30 Dec 2005, 23:50
by Guest
How can I format a single Subpattern?

Example:
foo bar

Regular expression:
^foo\s(\w)ar

Target string:
foo $(1)bar

How can I change the $(1) in upper case?

Posted: 02 Jan 2006, 10:58
by Lukas Cerman
Hi,

for upper case use $(1:upper).

You don't have to remember this, there is a menu to the right of the 'Replace with' form. The menu contains a choice 'Matched Subexpression'.

Posted: 02 Jan 2006, 11:30
by beta
Thanks Lukas.