Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Need RegExp help - doing an AND match - use grep instead

by Anonymous Monk
on Jul 01, 2007 at 13:51 UTC ( [id://624301]=note: print w/replies, xml ) Need Help??


in reply to Re: Need RegExp help - doing an AND match - use grep instead
in thread Need RegExp help - doing an AND match

Ah, fantastic, hadn't even thought of using grep. Thanks very much, rather an embarrassing first post. No, there wasn't any special need for Regexp other than trying to learn a bit more about them. My code now looks like this and works:
#@words is a bunch of words , $line is the line to search if(!grep{$line !~ $_} @words) { #success }
(I didn't actually need the missing ones.) Thanks a lot, imp!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-03-19 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found