Rename multiple files Using Regex

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Sharuc
Posts: 1
Joined: 23 Dec 2009 21:44

Rename multiple files Using Regex

Post 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

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Rename multiple files Using Regex

Post 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...

Post Reply