[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua to LPEG?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 21 Jun 2011 10:06:14 -0300
> 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