Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: using ? and ?? in regex

by Malkavian (Friar)
on Apr 26, 2001 at 17:45 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://75788]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-19 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found