in reply to Re: reg-exp problem
in thread reg-exp problem

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: reg-exp problem
by Corion (Patriarch) on Sep 09, 2008 at 11:18 UTC

    I posted the link to perlre and moritz posted the link to perlretut, which is where we both go looking for things that we don't remember. I suggest you do the same and follow these links and read the documentation.

Re^3: reg-exp problem
by Anonymous Monk on Sep 09, 2008 at 11:28 UTC
    #!/usr/bin/perl -- use YAPE::Regex::Explain; die YAPE::Regex::Explain->new( qr/[{},*]/ )->explain; __END__ The regular expression: (?-imsx:[{},*]) 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): ---------------------------------------------------------------------- [{},*] any character of: '{', '}', ',', '*' ---------------------------------------------------------------------- ) end of grouping ----------------------------------------------------------------------