http://www.perlmonks.org?node_id=1011992


in reply to Re^2: regular expression (blah blah blah)
in thread regular expression

Did you try to understand my regex pattern? YAPE::Regex::Explain? Put it in your regex, match up the quotes, delete your stuff, use my stuff
  • Comment on Re^3: regular expression (blah blah blah)

Replies are listed 'Best First'.
Re^4: regular expression (blah blah blah)
by frozenwithjoy (Priest) on Jan 07, 2013 at 09:44 UTC
    Although your suggestion makes the REGEX better, the primary problem is that $& contains the entire match, not the first subpattern ($1).