I came up with this one:
$string =~ /((\S+\s)*-\s.*\.mp3)/i
Of course, it is based on the premise that there will always be a '-' character surrounded by spaces between the artist and the song title. It also needs more than one space before the artist's name to parse out the extra data. Hope it helps!
-----------------------------------
Washizu
The best offense is a good offense.
In reply to Re: regex question
by Washizu
in thread regex question
by ciryon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |