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 white space between dashes and numbers?

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



Joined: 19 Apr 2008
Posts: 6

PostPosted: Mon Apr 21, 2008 2:12 am    Post subject: Removing white space between dashes and numbers? Reply with quote

You've been so helpful thus far, I have one more for you Smile

In my song titles I have a lot of dates, typically in the "2008-01-23" format.

With all the renaming I've been doing I've added spaces on either side of all my - dashes. However, I would like to remove those spaces between dashes and numbers.

So a title like this...

Worldwide - Gilles Peterson - 2004 - 08 - 15 - Montreux Jazz Festival Special.mp3

Should ideally read like this...

Worldwide - Gilles Peterson - 2004-08-15 - Montreux Jazz Festival Special.mp3

What would be the proper course of action in this case?
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Mon Apr 21, 2008 3:18 am    Post subject: Reply with quote

Try this (Don't inlcude the single quotes or just use the ctrl-f2 trick):

Row: 1
Search: '([0-9])[ ]+[-][ ]+([0-9])'
Replace: '\1-\2'

That will convert ' - ' to '-' if the '- ' is found between numbers.

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



Joined: 19 Apr 2008
Posts: 6

PostPosted: Mon Apr 21, 2008 3:55 am    Post subject: Reply with quote

Fantastic! Worked like a charm. Thanks for your help Smile
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