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

Re: Match only certain characters?

by EvanCarroll (Chaplain)
on Nov 08, 2009 at 23:43 UTC ( [id://805821]=note: print w/replies, xml ) Need Help??


in reply to Match only certain characters?

this will look for non-provided letters and stop on the first non provided letter.
$_="ABC"; say /[^ABC]/ ? "other (non-ABC) letters too" : "only provided letters"


Evan Carroll
The most respected person in the whole perl community.
www.evancarroll.com

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-03-28 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found