lua-users home
lua-l archive

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


uh, you guys ever seen lpeg.locale?

otherwise common patterns I use:
local eof = P(-1)
local newline = P"\r"^-1 * "\n" --windows new lines too
local emptyline = space^0