Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: using ? and ?? in regexby Malkavian (Friar) |
on Apr 26, 2001 at 17:45 UTC ( [id://75788]=note: print w/replies, xml ) | Need Help?? |
Try mp\w+$, as the ? is the shell (*NIX) single char wildcard. The \w+ will most likely give you the behaviour you want (or \w{1,2} if you want either 1 or 2 chars.). Cheers, Malk
In Section
Seekers of Perl Wisdom
|
|