Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: regex negation without !~

by xicheng (Sexton)
on May 24, 2007 at 22:34 UTC ( [id://617358]=note: print w/replies, xml ) Need Help??


in reply to regex negation without !~

check this out:
perl -wle ' my @test = qw(FOO FOOBAR FOO AFOO FOO BARFOO FOOFOO FOO1); print "match: $_" for grep { /^(?!FOO$)/ } @test; ' match: FOOBAR match: AFOO match: BARFOO match: FOOFOO match: FOO1
Regards,
Xicheng

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-20 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found