I need to extract part of the string while looks like this for example:
01. Artist Name - Song Title
So I have
Just split the string on the separator and pop of the last part :
var lastPart = str.split(separator).pop();
FIDDLE