Replace/delete part of filename in BRC

Post any Bulk Rename Command support requirements here. Open to all registered users.

Replace/delete part of filename in BRC

Postby NickHark » Mon Feb 16, 2015 7:22 pm

Original filenames:
Author__MUSIC_3937_BLOOD_OF_HEROES_Amy_GREENBURG_d13a76d516d9dec20c3d276ce028ed5089ab1ce3dae902ea1d06ca8535d5c05cd105_c_id_8242522.mp3

Desired file names:
Author__MUSIC_3937_BLOOD_OF_HEROES_Amy_GREENBURG.mp3

delete everything that begins with “_d” with ; This, /REGEXP:([_][d])\w+:"" doesn't work.

This is my command line: C:\"Program Files (x86)"\BRC\BRC64.exe /DIR:"E:\test BRC\" /PATTERN:"Author*.mp3" /REGEXP:([_][d])\w+:""

A multitude of different patterns errors out on Regex.

I'd gladly donate if I could get this utility to work for me. I am sorry I am so frustrated.

"([_][d])\w+" seems to work in Regex Coach, but I am note sure.

Could you please give a novice some guidance?

Thank you.
NickHark
 
Posts: 5
Joined: Sun Dec 01, 2013 10:11 pm

Re: Replace/delete part of filename in BRC

Postby NickHark » Thu Feb 19, 2015 1:14 am

I figured out BRC

I was able to figure out how to make BRC work for me. I include here, what I learned.

This worked for me:

Original file name: Author__MUSIC_3937_BLOOD_OF_HEROES_Amy_GREENBURG_d13a76d516d9dec20c3d276ce028ed5089ab1ce3dae902ea1d06ca8535d5c05cd105_c_id_8242522.mp3

Desired result: Author__MUSIC_3937_BLOOD_OF_HEROES_Amy_GREENBURG.mp3

BRC command line: C:\"Program Files (x86)"\BRC\BRC64.exe /DIR:"E:\test BRC\" /PATTERN:"A*.mp3" /REGEXP:(.+_d):\1 /REPLACECS:"_d":"" /EXECUTE

1. I had to think outside the “DOS”. Regex is not intuitive and I had to learn enough to make it work.
2. I used a tutorial at http://regexone.com/lesson/0 to see how it works.
3. I also focused my attention on getting the regex to work in BRU ( the GUI app). By seeing exactly how it works, by trial and error, my time was better used.
4. More cleanup is needed but I am truly happy that I finally got it.

Thanks for the great utility

P.S. I donated.
Last edited by NickHark on Sat Feb 21, 2015 5:02 pm, edited 1 time in total.
NickHark
 
Posts: 5
Joined: Sun Dec 01, 2013 10:11 pm

Re: Replace/delete part of filename in BRC

Postby Admin » Fri Feb 20, 2015 3:22 am

Thank you! :)
Admin
Site Admin
 
Posts: 2572
Joined: Tue Mar 08, 2005 8:39 pm


Return to BRC Support


cron