RegexSupport.gCompile — compiles a regular expression to a form that is more efficient to
evaluate.CompileSubst — compiles a substitution pattern.CompileSubstEx — an alternate interface to CompileSubst.Config — queries the PCRE library for compiled-in options.Exec — applies a regular expression match to a subject string.pcrs_job.Exec — applies a compiled pattern substitution to a subject
string.GetStringNumber — retrieves the index number of named substrings.Match — a convenience function that combines calls to Compile, Study, and
Exec.Study — helpful for speeding up repeated applications of a regular
expression.Subst — applies a substitution pattern to a string of a given
length.The RegexSupport.g file provides support for the Perl-Compatible
Regular Expression (PCRE) library (http://www.pcre.org/) and includes the PCRS
substitution extensions to PCRE.
![]() | |
You must require the Regex support methods before you can use them in a script. At the top of your script, include the following line: require (RegexSupport); The |
The RegexSupport.g file provides three classes:
Regex, a compiled regular expression pattern. All but
one of the methods in this reference are for this class.
pcrs_job, a compiled substitution expression. There is
one method for this class, pcrs_job.Exec.
pcre_extra, which contains hints for the regular
expression Exec function to speed up execution.