Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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


Comment on Re: Writing a negative regex using =~
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2015-07-31 17:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls