lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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