Method Maps1
SymbolDescription
RegexRegular expression objects are used to match or decompose strings based on patterns.
Enumerations1
SymbolDescription
RegexErrorRegex expression error codes.
Defines11
SymbolDescription
PCRE_ANCHOREDForce pattern anchoring.
PCRE_CASELESSIgnore Case
PCRE_DOLLAR_ENDONLY$ not to match newline at end.
PCRE_DOTALLSingle line (affects . so that it matches any character, even new line characters).
PCRE_EXTENDEDPattern extension (ignore whitespace and # comments).
PCRE_MULTILINEMultilines (affects ^ and $ so that they match the start/end of a line rather than matching the start/end of the string).
PCRE_NO_UTF8_CHECKDo not check the pattern for UTF-8 validity (only relevant if PCRE_UTF8 is set)
PCRE_NOTEMPTYAn empty string is not a valid match.
PCRE_UCPUse Unicode properties for \ed, \ew, etc.
PCRE_UNGREEDYInvert greediness of quantifiers
PCRE_UTF8Use UTF-8 Chars
Functions4
SymbolDescription
CompileRegexPrecompile a regular expression. Use this if you intend on using the same expression multiple times. Pass the regex handle returned here to MatchRegex to check for matches.
GetRegexSubStringReturns a matched substring from a regex handle. Substring ids start at 0 and end at captures-1, where captures is the number returned by MatchRegex.
MatchRegexMatches a string against a pre-compiled regular expression pattern.
SimpleRegexMatchMatches a string against a regular expression pattern.