RegExpr.ExecNext method searches the input string for the next text occurrence that matches the regular expression pattern. To get a portion of the text that matches the pattern, use the
|RegExprObj||An expression, variable or parameter that specifies a reference to a RegExpr object|
The method is applied to the following object:
Returns True if the text matches the expression that was found and False otherwise.
You should initialize the
Expression property with the regular expression and the
InputString property (explicitly or implicitly via previous
Exec call) with input string before calling the
ExecNext method, otherwise an error occurs.
The following example demonstrates how to use the
RegExpr.ExecNext method to iterate through the input text untill all matches are found.