The RegExpr function has an optional Flags parameter. The possible values for Flags are:
reCaseSensitive | Default. Matches are case sensitive (a and A are different). |
reCaseInSensitive | Matches are not case sensitive (a and A are the same). |
reSingleLine | Treats the input as a single line. "." matches a newline, "^" matches only at end of string, and "$" matches only at beginning of string. |
reMultiline | Treats the input as multiple lines. "." doesn't match a newline, "^" matches at end of string or line, and "$" matches at beginning of string or line. |
Default = neither | The default is neither reSingleLine or reMultiline, but a combination of them. "." doesn't match a newline, "^" matches only at end of string, and "$" matches only at beginning of string. |
You can combine Flags with the plus (+) operator like this: reCaseInSensitive + reSingleLine.