[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Can someone convert this POSIX regex to a Lua regex?
- From: Rajesh Malepati <chittoor@...>
- Date: Wed, 21 Oct 2009 01:35:43 +0530
On Wed, Oct 21, 2009 at 1:27 AM, Norbert Kiesel <email@example.com> wrote:
> On Tue, 2009-10-20 at 17:37 -0200, Luiz Henrique de Figueiredo wrote:
>> > '^(?:(?:ceil|abs|floor|mod|exp|log|pow|sqrt|acos|asin|atan|cos|sin|tan|deg|rad|random)\\(|pi|\\(|\\)|-|\\+|\\*|/|\\d|\\.|\\^|\\x2C|
>> > )+$'
> Actually started doing that, but it's quite complicated. Can we have |
> in Lua regexp pretty please? I can work around most other limitations,
> but alternatives are hard (especially like /hi (foo|bar)+ there/).
Can you try using LPeg instead ?