| 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. |
Finds and replaces all occurrences of regular expression matches with a given pattern. Complexity: varying.
This method is obsolete. Use the IFileDocument.ReplaceAllRegExp2 instead.