http://www.perlmonks.org?node_id=75788


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