We don't bite newbies here... much | |
PerlMonks |
Re^2: Dynamic regex assertions, capturing groups, and parsers: joy and terrorby Aristotle (Chancellor) |
on Oct 09, 2005 at 12:55 UTC ( [id://498552]=note: print w/replies, xml ) | Need Help?? |
A much better alternative that using lots of experimental features to write a single-regex parser is to split the matching across lots of /gc regexes. The resulting code is much easier to follow too, and you don’t need contortions to keep a grip on backtracking (my kingdom for Perl6’s commit!). Makeshifts last the longest.
In Section
Meditations
|
|