Wildcard (e.g. *)can be used in arguments following IS.
To search for same artists ignoring leading The or trailing , The you can use the following string :
*$if($strstr(%artist%,',' The),$cut(%artist%,$sub($len(%artist%),5)),$stripprefix(%artist%))*
Sorry. I always forget about the wildcard. At least I'm consistent
To search for same artists ignoring leading The or trailing , The you can use the following string :
*$if($strstr(%artist%,',' The),$cut(%artist%,$sub($len(%artist%),5)),$stripprefix(%artist%))*
Thank you. Now this works if I highlight a track with artist "Clash" - then it finds all tracks with artist "Clash" or "Clash, The". However, if I do highlight a track with "Clash, The" ...
Try this slight modification:
*$if($strstr(%artist%,', The'),$cut(%artist%,$sub($len(%artist%),5)),$stripprefix(%artist%))*
If that still fails with the trailing ", The", try this version. It's more specific with where it matches although it shouldn't make much of a difference:
*$if($stricmp($right(%artist%,5),', The'),$left(%artist%,$sub($len(%artist%),5)),$stripprefix(%artist%))*
Edited the content of the second code to remove an extra closing parenthesis which would cause it to fail. Apologies to anyone who tried to use it in the interim.