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 Charles Heywood once stated:
> It's not /0, it's # - SP = #P" "^0

  That still doesn't fix the initial problem:

	SP    = #lpeg.P" "^0
	patt  = lpeg.P"a" * SP
	thing = lpeg.Ct(lpeg.C(patt^0))

	x = thing:match("a  a  a")
	dump("x",x)
	x =
	{
	  [1] = "a",
	}

  -spc