$blah2 =~ s/\w+//;
Update: Note this doesn't prevent you from doing this:
But you should be careful about maintainability. This trick appears to only work with the m// construct in list context.my ($word) = $string =~ /(\W+)/;
In reply to Re: Quick Regex question
by swiftone
in thread Quick Regex question
by damian1301
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |