in reply to Re: Most efficient way to remove some text from a string
in thread Most efficient way to remove some text from a string

Sorry for the confusion. What I meant is that once I have removed the unnecessary part of the path, I would check the remaining string and count the number of forward slashes"/". If there are 0 forward slashes, this string represented an artist, if there is 1 forward slash, this string represents an album, 2 forward slashes represents a song.

  • Comment on Re^2: Most efficient way to remove some text from a string

Replies are listed 'Best First'.
Re^3: Most efficient way to remove some text from a string
by AnomalousMonk (Archbishop) on Dec 08, 2016 at 00:51 UTC

    I was confused because you seem to have  /Eminem running wild through your example paths. Others have assumed this is a typo, and you've never denied this. (Nor ever confirmed it...)


    Give a man a fish:  <%-{-{-{-<