in reply to What it mathches`

YAPE::Regex::Explain
use YAPE::Regex::Explain; print YAPE::Regex::Explain->new( qr/"^abc[A\b]def$"/ )->explain; __END__ The regular expression: (?-imsx:"^abc[A\b]def ) 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): ---------------------------------------------------------------------- " '"' ---------------------------------------------------------------------- ^ the beginning of the string ---------------------------------------------------------------------- abc 'abc' ---------------------------------------------------------------------- [A\b] any character of: 'A', '\b' (backspace) ---------------------------------------------------------------------- def 'def ' ---------------------------------------------------------------------- ) end of grouping ----------------------------------------------------------------------