Hi all, I've searched the FAQs for the solution to this but to no avail so hopefully someone can throw some light on why the obvious solution doesn't work in MP3Tag.
All I'm trying to do is add the composer, found at the beginning of the filename before the first dash (-), to the Composer field. For example; extract the composer 'Albinoni' from the filename:
Albinoni-Trumpet Concerto in C (IV - Allegro)My first attempt was to define a 'Format value' action into which I coded the following Format string:
$regexp(%_FILENAME%,^(.*)-?(.*),$1 )This simply created the whole filename as the composer.
After many hours of research (I'm no expert on regular expressions) and lots of trial and error, in desperation I tried the following Format string:
$regexp(%_FILENAME%,^(\w*|\W*)-?(.*),$1 )and bugger me it worked, producing the result Albinoni as required.
Surely "\w*|\W*" is just an obtuse way of writing ".*" or have I misunderstood something?????