The RWTRegex<T> Interface
RWTRegex<T> can perform both simple and extended regular expressions. The interface includes four primary classes:
RWTRegex<T> is the primary template for all instantiations on any type of character. Specializations of this template for use with characters of type
char and
wchar_t are also provided.
RWTRegexMatchIterator<T> iterates over all matches of a regular expression in a given string.
RWTRegexTraits<T> defines the character traits for regular expression characters of a specified type.
RWTRegexResult<T> encapsulates the result of a pattern matching operation. It stores the starting offset and length of the overall match, as well as all sub-expression matches.
RWRegexErr is used to report pattern compilation errors.
NOTE: A previous regular expression class
RWCRegexp is now deprecated. However, if your program requires the use of backreferences, you must use
RWCRegexp, as
RWTRegex<T> does not include that functionality. (Backreferences allow you to match new text with previously-matched text in a regular expression.)