View previous topic :: View next topic |
Author |
Message |
RickPhil
Joined: 23 Apr 2011 Posts: 7
|
Posted: Mon Apr 30, 2012 2:09 am Post subject: Changing order of file names |
|
|
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 |
|
 |
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Mon Apr 30, 2012 2:41 pm Post subject: |
|
|
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 |
|
 |
RickPhil
Joined: 23 Apr 2011 Posts: 7
|
Posted: Fri May 04, 2012 11:33 am Post subject: Worked Perfectly |
|
|
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 |
|
 |
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Sat May 05, 2012 6:59 am Post subject: |
|
|
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 |
|
 |
|