Need help with regex to swap contents

Hi, I'm trying to to convert 'tag to tag'.

In the TITLE field, I have 'Artist - Track'.

I want to have the TITLE field as 'Track {Artist}'.

(I know it's unorthodox, but that's how I want 'Various Artists' compilations named.)

So... %title% {%artist%} is what I want in the format field,
but...
of course that gives me 'Artist - Track {artist}'

I know I can use $regexp(), but what can i put between the brackets so it ignores everything before ' - ', including the ' - '.

As long as I live, I don't think I'll ever get the hang of regex!

Would appreciate any help, thanks :slight_smile:

never mind.... sorted.

I did: filename > title, filtering out everything except the title.

then: tag to tag > %title% {%artist%}

The regular expression would have been:
$regexp(%title%,(.*) - (.*),$2 {$1})

Thank you -- I'll have to give that a try next time I encounter this situation.
Actually, staring at it a while, the regex makes sense -- maybe there's hope for me yet!