Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: using ? and ?? in regex

by Malkavian (Friar)
on Apr 26, 2001 at 17:45 UTC ( #75788=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://75788]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2020-04-05 11:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (34 votes). Check out past polls.

    Notices?