in reply to Pattern Matching
any character except digits and non-digits is every character.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 ----------------------------------------------------------------------
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pattern Matching
by grizzley (Chaplain) on Aug 13, 2009 at 10:29 UTC | |
by Anonymous Monk on Aug 13, 2009 at 10:41 UTC | |
by grizzley (Chaplain) on Aug 14, 2009 at 06:05 UTC |