Peters Flexible RenAmiNg Kit (PFrank) Forum Index Peters Flexible RenAmiNg Kit (PFrank)
Support and Discussion Site for the PFrank File/Folder Renaming Tool (http://www3.telus.net/pfrank)
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Delete All Before First "-"

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



Joined: 23 Apr 2011
Posts: 7

PostPosted: Sun May 08, 2011 1:26 pm    Post subject: Delete All Before First "-" Reply with quote

I'd like to be able to delete everything before the first dash (-) in a file name, e.g. af_123 - Billy Joel - Piano Man would become Billy Joel - Piano Man.

Can anyone help?

Thanks
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Mon May 09, 2011 2:05 pm    Post subject: Reply with quote

Insert the following into the custom renaming creator (do not copy the single quotes):

Row: 1
Search: '(?1)^.*?\-[ ]*(.*)'
Replace: '\1'


Then press scan.

It is the '(?1)' that limits the replacements to the first occurrence in the name.

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
RickPhil



Joined: 23 Apr 2011
Posts: 7

PostPosted: Tue May 10, 2011 12:32 pm    Post subject: Reply with quote

Works just as I hoped, thanks.
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