Peters Flexible RenAmiNg Kit (PFrank) Forum Index Peters Flexible RenAmiNg Kit (PFrank)
Support and Discussion Site for the PFrank File/Folder Renaming Tool (***NEW HOME PAGE*** "http://pfrank.atwebpages.com")
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

'lastName, 1stName - song.mp3'->'1stName lastname - song.

 
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> Regular Expressions
View previous topic :: View next topic  
Author Message
Chris



Joined: 17 Apr 2010
Posts: 3
Location: Texas

PostPosted: Sat Apr 17, 2010 2:15 pm    Post subject: 'lastName, 1stName - song.mp3'->'1stName lastname - song. Reply with quote

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. Confused
Can anyone Help?
Thanks
Chris
_________________
Tex
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 448
Location: Canada

PostPosted: Sat Apr 17, 2010 7:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Chris



Joined: 17 Apr 2010
Posts: 3
Location: Texas

PostPosted: Sat Apr 17, 2010 9:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 448
Location: Canada

PostPosted: Sun Apr 18, 2010 3:59 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Chris



Joined: 17 Apr 2010
Posts: 3
Location: Texas

PostPosted: Sun Apr 18, 2010 8:28 pm    Post subject: Reply with quote

Perfect!!!
Thank you for the support!
PFrank once again works miracles!
Saved me hours of work.
Best regard,
Chris
_________________
Tex
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> Regular Expressions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own Video Sharing Site

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com