Help with regex, please


#1

I’d appreciate help on a reg-exp for the following.

The original album tag tag reads:

“Mozart: Piano Sonata in F major, KV 280 - III. Presto - Mitsuko Uchida – Philips 1990 ”

And I need to change it to:

“Mozart: Piano Sonata in F major, KV 280 - Mitsuko Uchida – Philips 1990”

The single string to be removed is variable in length, and will always be the first such string in a series separated by dashes. The string may contain non-alphameric characters like "." or "-".

Thanks in advance.


#2

Try this:

Action #1:
Action type: Replace with regular expressions
Field: ALBUM
Regular expression: ^(.) - (.) - (.*)$
Replace matches with: $1 - $3

[ ] case-sensitive comparison

However, errors may occur if the string you want to remove contains " - ".


#3

Brilliant! Thanks.