Quick complex batch rename

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
louwin
Member
Member
Posts: 128
Joined: 2007-06-09, 11:22 UTC
Location: Perth, Western Australia

Quick complex batch rename

Post by *louwin »

Just a quick question....

I haven't searched the previous threads (sorry) :(

I have about 200 folders of Author names in the format:-

Surname, FirstName or Surname, Initial(s) or Surname, FirstName Initial(s)

Can I rename the above to:-

FirstName Surname or Initial(s) Surname or FirstName Initial(s) Surname

?

In other words - one surname string followed by a comma then FirstName and/or Initials. In all cases I want to lose the comma and put the FirstName and/or Initials in front. :?
There are 10 types of people in the world,
Those who understand binary and those who don't.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3897
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

use the MultiRenameTool.
Note put each part you want to keep in brackets ()

Tick the RegEx option.
Search: (.*),(.*)

=> This keeps the surname at the first part and the rest after komma at the second part.

Replace: $2$1

Note: You may add a space according your notation ...
#5767 Personal license
TimA
Junior Member
Junior Member
Posts: 24
Joined: 2008-05-20, 13:46 UTC
Location: Ottawa, Canada

Post by *TimA »

If you click on Help in TC and then check out Regular Expressions this will give a clear idea on how to accomplish this.
BACKUP your original files before attempting this and test the rename on a couple of files before renaming the 200 to save yourself some possible grief.
User avatar
louwin
Member
Member
Posts: 128
Joined: 2007-06-09, 11:22 UTC
Location: Perth, Western Australia

Post by *louwin »

Perfect, Thank You :)
There are 10 types of people in the world,
Those who understand binary and those who don't.
Post Reply