lua-users home
lua-l archive

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


It was thus said that the Great Sean Conner once stated:
> 
>   Hard, because it appears you want to start with index [0], which makes it
> ... an interesting problem 

  Actually, it was easier than I thought---a close reading of the LPeg
documentation showed that

	lpeg.Ct(lpeg.Cg(pattern,0))

does return the patter in index 0 of the table.  So it's not as hard as I
thought it would be.

  -spc (learn something new every day ... )