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;)