Stumped renaming podcasts

A swapping-ground for Regular Expression syntax

Stumped renaming podcasts

Postby NickHark » Sun Feb 15, 2015 2:10 am

I use BRC to rename some of my downloaded podcasts, but I can’t figure out how to use it with others:

The podcasts are not uniformly named, unfortunately.

Original filenames:
Author__MUSIC_3937_BLOOD_OF_HEROES_Amy_GREENBURG_d13a76d516d9dec20c3d276ce028ed5089ab1ce3dae902ea1d06ca8535d5c05cd105_c_id_8242522.mp3

Author_3950_STORM_OF_WAR_ANDREW_ROBERTS_c_id_8242900_expiration_1422148199_hwt_d1cbf1cd02192fa9ae2fd52d302b3421.mp3

Author-Music-2015-3953WAR-BELOW-JAMES-SCOTT_d13a76d516d9dec20c3d276ce028ed5089ab1ce3dae902ea1d06ca8434d9c15dfcaa_c_id_8321407.mp3

Desired file names:
Author-BLOOD OF HEROES Amy GREENBURG.mp3

Author-STORM OF WAR ANDREW ROBERTS.mp3

Author-WAR BELOW JAMES SCOTT.mp3

It seems that it would be a multi step process:
1. Identify the filename beginning with Author (not case sensitive); I’ve got this
2. replace everything that begins with “d” or “c” with null; This, ([dc])\w+ doesn’t work.
3. replace “_Music_(any four digits)” with null; haven't attacked this yet
4. replace any remaining “_” with “-“; I’ve got this

In trying to learn about regex I note that there are different kinds of regexes. For example, using this website: I can grab the part _dxxxxxxxxx etc using regex, but that regex doesn’t work with BRC.
www.regexr.com

What regex does BRC use?

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

Could you please give a novice some guidance?
NickHark
 
Posts: 5
Joined: Sun Dec 01, 2013 10:11 pm

Return to Regular Expressions