The regexp2 delegate object provides a series of methods which allow you to use and evaluate regular expressions within your Squirrel code. Based on the Google re2 regular expression engine, regexp2 is a considerable improvement upon the standard Squirrel regular expression evaluation functionality provided by regexp and we recommended new code uses it in preference to the standard functionality. However, re2 memory usage issues mean that regexp2 is currently only available in agent code. A regexp2 regular expression is limited to 256 characters, and each agent is only allowed to have up to ten regexp2 objects simultaneously. The standard functionality will continue to be offered for device code and to maintain compatibility with older agent code.
The regexp2 object has the following member methods:
The regexp2 object has the following member function: