How do I delete only the first ' - ' (space-dash-space) if there are two of them in a filename?

Hello all

I'd be very grateful if anyone could help me with this one !

I have a large directory of files which should have a filename format of Artist - Title.wav

The issue is, that where the Artist's name is more than one word (like Micheal Jackson, or Paul Hardcastle) the first word of the Artist's name (Michael, or Paul, in the example above) is followed by a ' - ' (space-dash-space) and then the rest of the Artist's name.

image

This is further complicated because after the hyphenated Artist's name, there is another ' - ' (space-dash-space) to separate the Title field that follows.

So, if two lots of ' - ' (space-dash-space) exist in a given filename, I want to delete the first one (separating the Artist's name), but not the second one (separating Artist and Title).

However if the Artist's name is only one word (like Sting), then I want to preserve the following ' - ' (space-dash-space) that separates the following Title.

I hope all of that makes sense !!
I'd be very thankful if anyone has an answer to this.

Try Convert>Filename - Filename:
Mask over old filename: %1 - %2 - %3
Mask over nee filename: %1 %2 - %3

I see a couple of files that do not match the pattern - like the ones by the Nightcrawlers.
These will not get treated and stay the same.

Thanks, I'll give it a go. Yep, the whole directory is in a bit of a mess !

Sadly, I got this :

image

Which converter did you use?
Filename-Tag?
Tag-Filename?
or, as recommended: Filename-Filename?

'Filename - Filename' as you suggested.
I think it's the ones that only have a single ' - ' are throwing the error

You could try to limit the files to the ones with 2 hyphens and filter with:
%_filename% MATCHES ".*-.+-.*"

That's a great help, thanks so much for your support :grinning: