The RegExpr function has a Flags parameter. 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 "+" like this: reCaseInSensitive + reSingleLine.