Regex < Handle

Last Updated2019-07-31
Created At2014-10-30

Regular expression objects are used to match or decompose strings based on patterns.

Methods7
SymbolDescription
CaptureCountReturns number of captures for a match
GetSubStringReturns a matched substring from a regex handle. Substring ids start at 0 and end at captures-1, where captures is the number returned by Regex.Match or Regex.CaptureCount.
MatchMatches a string against a pre-compiled regular expression pattern.
MatchAllGets all matches from a string against a pre-compiled regular expression pattern.
MatchCountReturns number of matches When using Match this is always 1 or 0 (unless an error occured)
MatchOffsetReturns the string offset of a match.
RegexCompile a regular expression.