MacOS 26.3.1, MP3tag 1.11.0, Patterns 1.3
Forgive me, all my scripts got lost when my previous comp died last month, and I have to relearn a lot of what I wrote.
General question: Is there a site or app where I can test regexes in such a way that they “translate” properly to MP3tag? I use Patterns with it set to “Perl (PCRE)”, but I’m unsure if that matches what’s stated on the documentation.
Specific Question: I’m trying to isolate and extract info from Cue sheets, and just cannot remember how I got there for my old script. When I try to grab INDEXes with Patterns, it works fine:
and if I were to try and “translate” that to MP3tag, I’d want it to read more like:
^.+?\[\r\n\] TRACK %TRACK% AUDIO.+?((?:\[\r\n\] INDEX \d\d \d\d:\d\d:\d\d)+)(?:.+|$)
But when I try something like:
$regexp(%CUESHEET%,'^.+?\[\r\n\] TRACK '%TRACK%' AUDIO.+?((?:\[\r\n\] INDEX \d\d \d\d:\d\d:\d\d)+)(?:.+|$)',$1)
It doesn’t work, and I don’t know where to start with troubleshooting, because what I’m trying to do works with Patterns. I’m guessing this may be a mistake in my approach.
… thank you kindly in advance for your time, and getting this far. I had a really wonderful action groups .json file with all of these written out, thanks to the great update however long ago, and *poof*, one of the few things I lost and it’s one of the more frustrating.
Peace 8^)
