View previous topic :: View next topic |
Author |
Message |
abenton
Joined: 28 Sep 2010 Posts: 2
|
Posted: Wed Sep 29, 2010 3:19 am Post subject: Last Dash |
|
|
I'm trying to rename files with different structures.
"abc - def - hij - 01 - myfile.mp3"
"def - hij - 01 - myfile.mp3"
"hij - 01 - myfile.mp3"
Is there a way to go to the last dash, over a space and then delete all in front that? So I end up with: "myfile.mp3" _________________ albie |
|
Back to top |
|
 |
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Wed Sep 29, 2010 1:34 pm Post subject: |
|
|
Sure.
Copy the following into the custom renaming creator and press scan (do not enter the single quotes):
Row: 1
Search: '(?E).*\- '
Replace:
With the above expression, everything up to the last dash + space will be replaced with nothing.
Hope that helps.
Peter. |
|
Back to top |
|
 |
abenton
Joined: 28 Sep 2010 Posts: 2
|
Posted: Thu Sep 30, 2010 4:53 am Post subject: Last Dash |
|
|
Worked great. Thank you. _________________ albie |
|
Back to top |
|
 |
|