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 

Delete everything to the left of a pattern

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



Joined: 12 Oct 2008
Posts: 3

PostPosted: Thu Oct 13, 2011 1:35 am    Post subject: Delete everything to the left of a pattern Reply with quote

I would like to delete everything to the left of, and including, a certain pattern of characters. for example, in the file:

_Bee_Gees_-_Tales_From_Brothers_Gibb_CD_4_-_13_-_Spicks_&_Specks_[live][#].mp3___2.5_MBytes_yEnc-Bee Gees - Tales From Brothers Gibb CD 4 - 13 - Spicks & Specks [live][#].mp3

I would like to start by deleting everything up to and including the 'yEnc-' after that I'm good with the rest. The problem is that I have a lot of files similarly named, but the length of the string is different, obviously, so if I could find the 'yEnc-' and delete it and all to the left no matter how long I could really clean up the files quickly. Any ideas?
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 448
Location: Canada

PostPosted: Fri Oct 14, 2011 1:44 am    Post subject: Reply with quote

Just search for the following:

^.*?yEnc\-

and replace with nothing

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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