Regular Expressions
As part of its pattern-matching capability, the Essential Tools Module
supports simple and extended regular expression searches through its new
RWTRegex<T> interface. Using
RWTRegex<T> gives you access to
wchar_t support,
{m,n} cardinality constraint ability, and improved performance.
Extended regular expressions are the regular expressions used in the UNIX utilities
lex and
awk. Extended regular expressions can be any length, although limited by available memory. You will find details of the regular expression syntax in the
SourcePro API Reference Guide under
RWTRegex<T>.
RWTRegex<T> is based on the POSIX.2 standard for regular expressions. POSIX.2 includes notations for basic regular expressions (BREs) and extended regular expressions (EREs).
RWTRegex<T> is based on the ERE standard to support the wide character searches required by many non-Latin languages.
NOTE: If your regular expression search requires the usage of backreferences, you will need to use
RWCRegexp, rather than
RWTRegex<T>.
In order to offer backwards-compatibility with
RWCRegexp regular expression syntax, the
RWTRegex<T>-supported syntax differs slightly from the POSIX standard. For details, see the
SourcePro API Reference Guide under
RWTRegex<T>.