View previous topic :: View next topic |
Author |
Message |
MTD
Joined: 19 Sep 2008 Posts: 1
|
Posted: Fri Sep 19, 2008 6:31 pm Post subject: Deleting brackets |
|
|
Hi,
I have some MP3 files in the naming format '[MP3]-name (remix).mp3'
I would like it to be 'name.mp3' getting rid of the [ ] and ( ), the text inside of them, and the -
Everytime I try to rename I can't get rid of the [ ] or the ( ) but it does remove the text inside of them.
Thank you in advance. |
|
Back to top |
|
 |
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Sat Sep 20, 2008 3:54 am Post subject: |
|
|
If you look under the predefined regex list there is a selection for 'Delete Brackets and their content'. If you select that and insert you will be half way there. Then you just need the next row to remove any leading dashes.
Copy and paste the information below into the Custom Renaming Creator list (do not include the single quotes).
Row: 1
Search: '(?x) [\{\(\[]+.*?[\]\}\)]+ # delete brackets + contents'
Replace:
Row: 2
Search: '^[-]'
Replace:
Press scan and watch the preview list appear. if you like what you see then press 'Rename'.
Hope this helps.
Peter. |
|
Back to top |
|
 |
|