![]() |
||
|
David Given wrote:
Not having alternation (|) in the regex syntax does actually cause some problems --- I have to try each regex in succession until one matches. I don't know how Lua's pattern support works internally, I suspect I may be spending more time compiling regexes than actually doing work, during imports.
Lua patterns aren't compiled; the pattern string itself is iterated through. (See the function "match" in lstrlib.c.) -- Aaron http://arundelo.com/