in reply to Reg Exp
use strict; use warnings; use YAPE::Regex::Explain; print YAPE::Regex::Explain->new('[[\\s(/]ssshd\\s')->explain(); __END__ The regular expression: (?-imsx:[[\s(/]ssshd\s) 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): ---------------------------------------------------------------------- [[\s(/] any character of: '[', whitespace (\n, \r, \t, \f, and " "), '(', '/' ---------------------------------------------------------------------- ssshd 'ssshd' ---------------------------------------------------------------------- \s whitespace (\n, \r, \t, \f, and " ") ---------------------------------------------------------------------- ) end of grouping ----------------------------------------------------------------------
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reg Exp
by kennethk (Abbot) on Aug 27, 2010 at 19:54 UTC |