Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Matching and nonmatching multiple regexps at once

by JavaFan (Canon)
on Apr 20, 2012 at 15:18 UTC ( #966207=note: print w/ replies, xml ) Need Help??


in reply to Matching and nonmatching multiple regexps at once

/that (*COMMIT) (*FAIL) | this .* that (*COMMIT) (*FAIL) | this/xs;
Note that this doesn't work correctly on 5.12 (adding some parens around 'this .* that' makes it work though), but it does work correctly in 5.14.2.


Comment on Re: Matching and nonmatching multiple regexps at once
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2014-12-27 04:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls