in reply to Pattern Matching

use YAPE::Regex::Explain; print YAPE::Regex::Explain->new(qr/[^\d\D]/)->explain; __END__ The regular expression: (?-imsx:[^\d\D]) matches as follows: NODE EXPLANATION ---------------------------------------------------------------------- (?-imsx: group, but do not capture (case-sensitive) (with ^ and $ matching normally) (with . not matching \n) (matching whitespace and # normally): ---------------------------------------------------------------------- [^\d\D] any character except: digits (0-9), non- digits (all but 0-9) ---------------------------------------------------------------------- ) end of grouping ----------------------------------------------------------------------
any character except digits and non-digits is every character.

Replies are listed 'Best First'.
Re^2: Pattern Matching
by grizzley (Chaplain) on Aug 13, 2009 at 10:29 UTC
    No. Any character except digits or non-digits would be every character. With and, this regexp will never match.
      I think i was trying to say: Any charater except every character.
        Ah, ok. Note to self: read carefully...