RegExMatch
Class RegExMatch

Method PrototypeDescription
Function Replace(s As String = "") As Stringreplace the matched text with the given text (or if no text is given, with the RegEx.ReplacementPattern)
Function SubExpressionCount() As Integerhow many subexpressions there are
Function SubExpressionStartB(i As Integer) As Integerstart (in bytes) of the given subexpression within the original text
Function SubExpressionString(i As Integer) As Stringtext of the given subexpression


This class represents the result of a RegEx search. You can use it to replace the matched text with new text, or inspect the subexpressions within the match. Note that subexpression 0 always represents the full text matched; additional subexpressions, if any, are parenthesized sections of the in the original RegEx.SearchPattern.