Page 1 of 1

Rename multiple files Using Regex

Posted: 23 Dec 2009 21:59
by Sharuc
Hello
Is there a way to use [0-9 A-F] in the regex rename, also switch "2 test.doc" to "test 2.doc" had used in some other regex for example to find "(#)(test).doc" and replace "\2 \1.doc" . Like the regex find and replace in Office Excel.
Thanks

Re: Rename multiple files Using Regex

Posted: 05 Jan 2010 21:33
by Stefan
Hi Sharuc, welcome!
Sharuc wrote:Hello
Is there a way to use [0-9 A-F] in the regex rename,
also switch "2 test.doc" to "test 2.doc" had used in some other regex
for example to find "(#)(test).doc" and replace "\2 \1.doc" .
Like the regex find and replace in Office Excel.
Thanks
Yes.

(\d) (.+)\.doc > $2 $1.doc

For an better answer please provide more examples and/or see:
http://88.191.26.34/XYwiki/index.php/Re ... xpressions
http://88.191.26.34/XYwiki/index.php/Re ... Exp_Rename...