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 

Moving last field to first

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



Joined: 26 Jun 2011
Posts: 2
Location: Canada

PostPosted: Sun Jun 26, 2011 9:35 pm    Post subject: Moving last field to first Reply with quote

Hi all,

I did search, and I have not found the answer.
I want to get the last "field" of the file name, it is the name of the author, following the first " - " from the end of the file name.
Grab this info, 99% it is First and Last name, and move it to the very begining of the file, then the " - " should be following ie:

Before:
this is some text - this si the title - First name Last name.doc

After:

First name Last name - this is some text - this si the title.doc

the complexity is that all my files do not alway have the same number of fields, but the first and last names are always at the end, so we should start from the end right?

Need help here...

thanks
Back to top
View user's profile Send private message AIM Address
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Mon Jun 27, 2011 8:07 pm    Post subject: Reply with quote

Insert the following into the renaming creator (do not include the single quotes);

Row: 1
Search: '(?E)(.*)-(.*)'
Replace: '\2 - \1'
Row: 2
Search:
Replace: '*Delete All Extra Whitespace in*Prefix*'

Press scan and check the preview window.

Hope that helps!

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



Joined: 26 Jun 2011
Posts: 2
Location: Canada

PostPosted: Wed Jun 29, 2011 1:22 am    Post subject: Moving last field to first SOLVED Reply with quote

Yeap!!

Thank you very much
Back to top
View user's profile Send private message AIM Address
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