Page 1 of 1

Replace/delete part of filename in BRC

PostPosted: Mon Feb 16, 2015 7:22 pm
by NickHark
Original filenames:

Desired file names:

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.

Re: Replace/delete part of filename in BRC

PostPosted: Thu Feb 19, 2015 1:14 am
by NickHark
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 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.

Re: Replace/delete part of filename in BRC

PostPosted: Fri Feb 20, 2015 3:22 am
by Admin
Thank you! :)