too many co-artist field fix

Example 1:

My Artist field looks like:

Rihanna ft. Beenie Man & Bounty Killer

I want to delete : ft. Beenie Man & Bounty Killer

and keep the first artist only.Rihanna

Example 2:
My Artist field looks like:Justin Bieber ft. J Balvin

I want to delete : ft. J Balvin

and keep the first artist only.Justin Bieber

thanks for advance.greeting...

Field:
RegExp:
Replace with:

Define an action.
Type: Guess values
Source format: %artist%
Guessing pattern: %artist% ft. %dummy%

hello!!..
thank you, I try right now...

.i did,but not working in example 1 but in example 2 is name and last name any idea for?

you say:
example 1
Type: Guess values
Source format: %artist% = Rihanna ft. Beenie Man & Bounty Killer
Guessing pattern: %artist% ft. %dummy% = Rihanna ft. Beenie Man & Bounty Killer ft. %dummy%

OK I fing out the fix for example 1 Rihanna ft. Beenie Man & Bounty Killer ,,,only name whit out last name. what I did is:

step 0ne
split field by separator: Field: artist separator: ft.
step two
gues values: source:%artist% gues value:%artist%

idk how I fix the example 2...

I don't understand the way you told us your solution.

The action "Guess Values" needs a unique separator which you have with " ft. " (space, Ft., space).
I can see no difference in your 2 examples. Each one is seperated by this seperator and should work with the action I wrote.

Also I don't understand what you mean by 2 steps. There is no need to split by a seperator in a first step. The seperator is part of the action type "Guess Values".

Could it be that you did not write %artist% in your action but the content of the placeholder %artist%?