View previous topic :: View next topic |
Author |
Message |
Chris
Joined: 17 Apr 2010 Posts: 3 Location: Texas
|
Posted: Sat Apr 17, 2010 2:15 pm Post subject: 'lastName, 1stName - song.mp3'->'1stName lastname - song. |
|
|
I have a mix of Artist names in my mp3 collection, by 'firstnane lastname', and 'lastname, firstname' in the file format of 'Artist - Title.mp3'.
I'm looking for a way to make all Artist's names 'Firstname Lastname'.
No doubt this is so simple a cave man can do it, but I can't seem to come up with a way.
Can anyone Help?
Thanks
Chris _________________ Tex |
|
Back to top |
|
 |
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Sat Apr 17, 2010 7:06 pm Post subject: |
|
|
Swapping fields is not so simple actually. How to do it is described in the built-in help.
Copy the following in the custom renaming creator (do not copy the single quotes):
Row: 1
Search: '(?E)(.*?)\-(.*)'
Replace: '\2 - \1'
The search expression identifies 2 groups separated by a dash.
The '(?E') is used to isolate the prefix part of the filename.
The replace expression swaps the groups.
Hope this helps.
Peter. |
|
Back to top |
|
 |
Chris
Joined: 17 Apr 2010 Posts: 3 Location: Texas
|
Posted: Sat Apr 17, 2010 9:51 pm Post subject: |
|
|
Thanks for your quick suggestion. However my question probably could have been stated more clearly.
What I'm trying to do is change the "Artist" field, nothing to do with the "Title".
I currently have this file layout:
LastName, FirstName - Title.mp3
What I'm needing is:
FirstName LastName - Title.mp3
Need to switch the LastName and FirstName, remove the ',' and a space between the names.
Hope this helps.
Best regards,
Chris _________________ Tex |
|
Back to top |
|
 |
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Sun Apr 18, 2010 3:59 am Post subject: |
|
|
Sorry - I misread your post.
The following will switch the name parts and leave the title as is (again do not copy the single quotes):
Row: 1
Search: '(?E)(.*?)[ ]*,[ ]*(.*?)[ ]*-'
Replace: '\2, \1 -'
Peter. |
|
Back to top |
|
 |
Chris
Joined: 17 Apr 2010 Posts: 3 Location: Texas
|
Posted: Sun Apr 18, 2010 8:28 pm Post subject: |
|
|
Perfect!!!
Thank you for the support!
PFrank once again works miracles!
Saved me hours of work.
Best regard,
Chris _________________ Tex |
|
Back to top |
|
 |
|