Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Regular expression question strikes again

by Anonymous Monk
on Sep 05, 2007 at 10:03 UTC ( [id://637108]=note: print w/replies, xml ) Need Help??


in reply to Regular expression question strikes again

there is also the !~ no-match binding operator.

``Binary "!~" is just like "=~" except the return value is negated in the logical sense.''

see Binding Operators in perlop.

Replies are listed 'Best First'.
Re^2: Regular expression question strikes again
by blazar (Canon) on Sep 05, 2007 at 16:20 UTC
    there is also the !~ no-match binding operator.

    As a side note there's been a very interesting discussion about negating regexen.

      nice discussion. I missed it somehow.

      I wonder if the regex engine could give it. A negated compiled form seems possible. Then there would be the problem of giving a regex that corresponds to a given compiled form. Still a special flag could be used to say "already compiled" and somehow could make it useful as part of a bigger regex (not fully compiled).

      This seems to ring some bells of a discussion on p5p about the actual scheme of adding qr// parts.

      cheers --stephan the rewrite feeling is strong today;)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-26 00:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found