lua-users home
lua-l archive

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


Linus Sjögren wrote:
Here's the regex in question:

'^(?:(?:ceil|abs|floor|mod|exp|log|pow|sqrt|acos|asin|atan|cos|sin|tan|deg|rad|random)\\(|pi|\\(|\\)|-|\\+|\\*|/|\\d|\\.|\\^|\\x2C| )+$'

Lua regular expressions are less powerful than POSIX ones (while being quite adequate for most pattern matching tasks). The above pattern is not convertible to a Lua pattern. You can use POSIX patterns in Lua with Lrexlib (its POSIX part).

--
Shmuel