lua-users home
lua-l archive

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


> It would be nice to be able to say lpeg.L "(foo|bar)", however. '|'
> becomes magic of course.

You may say

  re.compile"{'foo' | 'bar'}"

-- Roberto