[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Literate Patterns
- From: Scott Vokes <vokes.s@...>
- Date: Wed, 14 Jul 2010 12:29:22 -0400
On Wed, Jul 14, 2010 at 12:11 PM, RJ Russell <russellsprouts2@gmail.com> wrote:
> I wouldn't really recommend using this code, as I built in a few
> minutes, but it is good educationally.
> The patterns are much longer, but a lot more readable I think.
Once you have string patterns that verbose, you may want to look
into LPEG (http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html). It's
very fast, and considerably more expressive.
Scott