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 

Changing order of file names

 
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: Mon Apr 30, 2012 2:09 am    Post subject: Changing order of file names Reply with quote

I want to reorder the file name from:
YYYY-MM-DD - FirstName Last Name - Title
to:
First Name Last Name - Title - YYY-MM-DD

I can get the names and titles moved correctly but whenever I attempt to get the date moved ends up between the name and title.

Any help is welcome.
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Mon Apr 30, 2012 2:41 pm    Post subject: Reply with quote

Try the following in the custom renaming creator (do not include the single quotes):

Row: 1
Search: '(?E)(.*?)\-(.*?)\-(.*?)\-(.*?)\-(.*)'
Replace: '\4 - \5 - \1 - \2 - \3'

Hope that helps,

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: Fri May 04, 2012 11:33 am    Post subject: Worked Perfectly Reply with quote

Worked great.

One question, whats the significance of the slashs in the search field. I've seen examples using them in the replace field, but not in the search field.

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


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Sat May 05, 2012 6:59 am    Post subject: Reply with quote

In the search field you won't be able to search for special characters like '[', ']', '(', ')', etc. unless you precede them with a '\'.
This is a property of 'regular expressions' which are used by PFrank for search/replace. This is all explained in the PFrank user manual.

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