Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Writing a negative regex using =~

by Anonymous Monk
on Oct 17, 2012 at 09:50 UTC ( #999508=note: print w/replies, xml ) Need Help??


in reply to Writing a negative regex using =~

my( $flag, $regex ) = /(\s*(\!))?(.*)/; $flag ? text !~ $regex : $text =~ $regex

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999508]
help
Chatterbox?
and God said, "Let Newton be!"...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2017-02-25 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (365 votes). Check out past polls.