swapping names around

A swapping-ground for Regular Expression syntax

swapping names around

Postby oilburner » Fri Apr 03, 2015 9:43 pm

hi
ive been trying to swap names around for years but no luck. can any one help me with my cg+g files

what I have is " BC40049-01 - Jackson, Michael & Paul McCartney - Ebony & Ivory "
and what I would like is " BC40049-01 - Michael Jackson & Paul McCartney - Ebony & Ivory

please help me as I have about 100.000 of these songs to put in right order
oilburner
 
Posts: 5
Joined: Sat Mar 17, 2012 5:44 pm

Re: swapping names around

Postby Jane » Sat Apr 04, 2015 5:39 am

This is very similar to one you were helped with in 2012.
http://www.bulkrenameutility.co.uk/forum/viewtopic.php?f=3&t=1380&p=4201#p4200.


Use regex as you did in 2012
match it with:
(^[^-]+-[^-]+-)([^,]+),([^&]+) (&.+)

Replace with:
\1\3\2 \4


HTH
Jane
Jane
 
Posts: 24
Joined: Sat Aug 05, 2006 1:20 am

Re: swapping names around

Postby oilburner » Sat Apr 04, 2015 1:13 pm

thanks very much. it works great, ive tried all combinations to no avail since 2012
oilburner
 
Posts: 5
Joined: Sat Mar 17, 2012 5:44 pm


Return to Regular Expressions


cron