Move The at beginning of artist field to after artist

The, Beatles - hello goodbye

to

Beatles, The - Hello goodbye

tried replace with regular expression

^(the)\s(.+)$

$2 ($1)

doesnt work

thanks

This is what your regular expression actually tries to match:

In your example there is no space after your word "The".

I would say that this is not the ARTIST but something else.
The artist is "The Beatles".
So what does the data in the field ARTIST look like?

This works for me:

find: (^.*?), (.*?)( -.*?)$
replace: \2, \1\3
or $2, $1,$3

@anon32189785
The OP asks for a solution to move "The" at the beginning of the ARTIST field.
In your solution everything at the beginning (in front of the comma) will be moved.

Typical example for an ARTIST that should NOT be moved:
Earth, Wind & Fire

Hello

Think it should be dimple, just can't get my head around writing mp3tag scripts
Need in artist fiekd

The, Beatles
To becone
Beatles, The

Needs to search for first 3 characters in artist field to be The

Then move it to the end of the artist field

Hopefully someone can help me with the code

Have written visual basuc, and some machine code, so have a grasp of the basics but not mp3tag scripts, pity there's not a script creator of sorts

Thanks in advance

Try "Replace with regular expression" for ARTIST
Search string: ^The (.*)
Replace with: $1, The

My favourite group for this procedure is always "The The".
Also problematic:
The Duke & The King
The Head & The Heart
The Weeknd & Ariana Grande
The Wind & The Wave

Thank you
Will give this a try, plan to use on my massive music collection, will do on a backup first lol
Does this only look for The I'm the first 3 characters :thinking:

If The appears elsewhere in the artist field needs to be ignored
e.g Brian Poole and The tremeloes, in this case The "The" should be ignored thanks

Cheers :+1:

Yes, it matches only occurrences of The at the start of the line (denoted by ^ in the expression above).

You can also always experiment and try for yourself. It's a good way to familarize yourself with the workings of these actions.

Is there a guide to what all the symbols mean and what they achieve e.g. ^

Would love to learn what that and $ do

Thanks

See the documentation about regular expressions: