Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Dynamic regex assertions, capturing groups, and parsers: joy and terror

by Aristotle (Chancellor)
on Oct 09, 2005 at 12:55 UTC ( #498552=note: print w/replies, xml ) Need Help??


in reply to Re: Dynamic regex assertions, capturing groups, and parsers: joy and terror
in thread Dynamic regex assertions, capturing groups, and parsers: joy and terror

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.

  • Comment on Re^2: Dynamic regex assertions, capturing groups, and parsers: joy and terror

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://498552]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2020-05-26 18:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (150 votes). Check out past polls.

    Notices?