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 

Removing lead characters and changing name

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



Joined: 28 Jul 2008
Posts: 5

PostPosted: Tue Oct 26, 2010 3:38 pm    Post subject: Removing lead characters and changing name Reply with quote

SPC003 - 01 - Hill,Faith - Breathe.mp3

Hi,

For the above file, how do remove the "SPC003 - 01 - ' AND make 'Hill,Faith' = 'Faith Hill'?

Thanks,

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


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Wed Oct 27, 2010 2:52 pm    Post subject: Reply with quote

There are lots of ways to do this depending on your criteria. ie. do you always want to remove the first 2 words, or remove the first 2 words if the second one is a number, or remove the first 2 words if the first one starts with SPC, or remove everything before the word 'Hill",

Need more information about the overall strategy.

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



Joined: 28 Jul 2008
Posts: 5

PostPosted: Wed Oct 27, 2010 7:55 pm    Post subject: Reply with quote

In this case, I always want to remove the 'SPC - 01 - ' if it starts with SPC, since there are other files in the folder.
Back to top
View user's profile Send private message
coastalkid



Joined: 28 Jul 2008
Posts: 5

PostPosted: Thu Oct 28, 2010 7:46 pm    Post subject: Reply with quote

Ok, maybe this will be better...remove everything before the word 'Hill"
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Fri Oct 29, 2010 1:30 am    Post subject: Reply with quote

I really don't think you want to limit the changes to names with the word Hill.

Try this in the renaming creator (don't copy the single quotes):

Row: 1
Search: '(?E)^SPC.*?\-.*[0-9]+.*?\-(.*)'
Replace: '\1'
Row: 2
Search: '(.*?),(.*?)\-(.*)'
Replace: '\2 \1 - \3'


Press scan and check the preview window.
Make a backup of your files before renaming.

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