Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Truncating "The" with formatting string? (Read 1953 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Truncating "The" with formatting string?

Alright, I seem to recall being able to do this, but I can't figure it out myself... can you take artists that have "The" at the beginning and move it so it's "Artist, The" instead? I need something that will search for "The " at the beginning of each artist tag, and if it exists then remove it and add ", The" to the end of the tag, but I'm not sure how I can do that. :/

Truncating "The" with formatting string?

Reply #1
$if($stricmp($substr(%artist%,1,4),'The '),$substr(%artist%,5,$len(%artist%))', The',%artist%)

 

Truncating "The" with formatting string?

Reply #2
thanks, guess it's a bit more complicated than I thought