Are there Regular Expression libraries?
Naturally! But see if you really cannot do the task with Lua’s built-in string patterns. Although simpler than traditional regular expressions, they are powerful enough for most tasks. In most cases, you can understand a Lua string pattern by mentally replacing ‘%’ with ‘\’; the advantage of % of course is that it does not itself need escaping in C-style strings such as Lua uses.
Related Questions
- Is there a simple way to use regular expressions with TRichEdit controls? Most regular expression libraries use a unique syntax what is the particular syntax used by the VCL library?
- Installation#14. Do I need PCRE (the Perl-Compatible Regular Expression libraries, and sometimes also its development tools)?
- What does Syntax error in regular expression mean?