lua-users home
lua-l archive

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


On Thu, Aug 29, 2013 at 11:57:55AM -0400, Sean Conner wrote:
> It was thus said that the Great Luiz Henrique de Figueiredo once stated:
> > > I want to parse a HTTP header string "name:value" pair. In REXX this
> > > is
> > 
> > This should work just fine:
> > 
> > local name,value=string.match(line,"(.-):%s*(.-)$")
<snip>
>   -spc (man, that real world---it's sooooo messy)
> 
> [1]	If I'm parsing email, I'll use:
> 	https://github.com/spc476/LPeg-Parsers/blob/master/email.lua
> 

That module is a tour de force. It's priceless just for its documentary
value.

Awesome.