Copy text after specific character from folder name to tag field

I would like to copy the text from the folder names after the (last) specific character "·" to the tag field 'Genre'

For example,
if a folder name is:
"Chill · Chill Jazz" then copy "Chill Jazz" to the Genre tag field of the tracks included in the folder

if a folder name is:
"Chill · Lounge · House Lounge" then copy "House Lounge" to the Genre tag field of the tracks included in the folder

The special character is "·"

Try Convert>Filename - Tag
Mask: %dummy% · %genre%\%dummy%

1 Like

I suggest a "Format" action for the genre field.
Format string: $trim($regexp(%_directory%,(.+)·(.+),$2))

1 Like

Thank you both for the replies and the solutions. Problem solved!