Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Match only certain characters?

by EvanCarroll (Chaplain)
on Nov 08, 2009 at 23:43 UTC ( #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
Node Status?
node history
Node Type: note [id://805821]
help
Chatterbox?
[choroba]: the related discussion on Hacker news is interesting
[choroba]: not so many Perl haters so far

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2017-07-26 14:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (396 votes). Check out past polls.