I have a regex-based replace/match action that does nothing when I try to run it, and I'm presuming I've coded the regex incorrectly. How do people normally diagnose this sort of thing?
I have some podcasts whose titles have contents like:
BAL Dvorak New World Symphony LEN=46:30 FNM=bal_20090502-1030a
I thought I'd try to match parts of that text as follows:
BAL Dvorak New World Symphony LEN=46:30 FNM=bal_20090502-1030a
11123333333333333333333333333444445555566666777788888888999999
ie part 1 first word eg "BAL"
2 following space eg " "
3 text between part2 and part4 eg "Dvorak New World Symphony"
4 " LEN="
5 text between parts 4 and 6 eg "46:30"
6 " FNM="
7 text between parts 6 and 8 eg "bal_"
8 eight consecutive digits eg "20090502"
9 whatever's left
I wrote this regex to do that:
(\w{2,15})(\s{1,3})(.)( LEN=)(.)( FNM=)(.)(\d(8,8))(.)
and told Mp3tag to replace the text with
$1 $8 $5 $3
hoping to get a new title text like:
BAL 20090502 46:30 Dvorak New World Symphony
But instead Mp3tag simply makes no changes to the title text, and issues no error message. I do not know how to work out why.