Hope this helps,$string=~ /\s*([^.|]+)\.mp3/; print "$1\n";
update
Use:
The period wasn't needed.$string=~/\s*([^|]+)\.mp3/;
In reply to Re: regex question
by rchiav
in thread regex question
by ciryon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |