A string that contains a regular expression. A regular expression must by in ECMAScript syntax.
Code page for regular expression pattern encoding or CP_UNICODE (-5) for UTF-16.
The number of sub-match to search for. 0 means the entire expression.
Flags that change the behavior of the function. May be one or more of the following values:
True to ignore case and false to match case.
A start offset of the range. Must be a multiple of 2 if RegExpTypeUNICODE flag is specified.
Range's size. Must be a multiply of 2 if RegExpTypeUNICODE flag is specified.
pFoundMultiple Selection object, which contains, on method's return, all located ranges.OccurrencesPointer to a variable to receive a number of occurrences.
Automation:A number of occurrencesNative:
S_OK or standard OLE error code.
Locates all matches of a given regular expression in a given range. You provide the function with an output Multiple Selection object pFound, in which it stores all located ranges. This object is automatically cleared before the operation begins. When the method returns, check the IMultiSelection.Empty property to see if there were any pattern occurrences. Complexity: depends on the range's size and regular expression complexity.