| Flag | Value | Description |
| RegExpTypeANSI | 0x00000000 | Treat the given range as a stream of single-byte characters. May not be used with RegExpTypeUNICODE flag. |
| RegExpTypeUNICODE | 0x00000001 | Treat the given range as a stream of 16-bit unicode characters. May not be used with RegExpTypeANSI |
| RegExpIgnoreCase | 0x00000002 | True to ignore case and false to match case. |
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.
This method is obsolete. Use the IFileDocument.FindAllRegExp2 instead.