Open Khubajsn opened 10 years ago
What are the limitations? Lua regexps are already quite complete, I don't see what else you'd need.
Lua patterns are very limited if you want to do more complex search/matches.
Some Lua pattern limitations: Only single letters can match multiple of or repeated. ( te(st|xt) or (te[^s]t)+ fails) Optional groups don't exist. ( (%w)? fails ) Lookaheads or lookbehinds don't exist.
These are only a couple that I can remember off the top of my head.
BUMP.
I know there's string.find, but it has some limitations. While there's always a workaround, an ability to use regular expressions would be really neat and often timesaving. I guess you could just put in one of the existing libraries if you didn't want to code this yourself.