in reply to using ? and ?? in regex
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
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