[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Can someone convert this POSIX regex to a Lua regex?
- From: Norbert Kiesel <nkiesel@...>
- Date: Tue, 20 Oct 2009 12:57:25 -0700
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|
> > )+$'
> I cannot be converted directly but if you tell what you're trying to match,
> perhaps we can offer solutions in Lua.
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/).