Newbie at this but have a lot working right now - just got stumped on MP3Tag's treatment of blank tags.
I have multiple files that display [Untitled] or [Untitled Track] for the %title% field.
I've tried to test using $strstr and $len - but $len seems to return the length as if it's filled in,
and $strstr doesn't seem to be able to find "Untitled" anywhere in the string.
I've read thru the regex FAQ but nothing seems to indicate how to handle the possibilities
I just want to replace any of these missing titles or titles starting with "[Untitled" with
"Untitled " + %track%
Action #1Actiontype 5: Format valueField ______: TITLEFormatstring: $regexp(%title%,'(?i)^\[untitled[^]]*\]'$,$1 $num(%track%,2))
End Action Group _Script Test#TEST (1 Action)
It searches for the %title% to start with '[' then untitled. It then searches for anything but a ']' between 0 and an unlimited no. of times. Then a ']' This will match both:
[Untitled]
[Untitled Track]
And replace them with your desired format with the %track% formatted with 2 padded numbers.