in reply to Re^3: Problem with capturing all matches with regex
in thread Problem with capturing all matches with regex

Adding code ("actions") into your patterns is how real-world parser generators generally work. Perl6 has gone that direction, but the Perl5 syntax for doing it is obscenely bletcherous.
  • Comment on Re^4: Problem with capturing all matches with regex