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:
> 
>   I have an issue where I thought using lpeg.Carg() would solve the issue. 
> As a test, I wrote:
> 
> 	lpeg = require "lpeg"
> 	pat  = lpeg.P"a" * lpeg.Carg(1)
> 
> 	x = pat:match(pat)
> 	print(x)

  Oops.  I meant:

	x = pat:match("a")

  -spc (That's what I get for not doing cut-n-paste)