The type of grammar to use for regular expression matching when using RegExpMatch and RegExpIterate. These are not to be used with RegExpReplace, for that see REGEXP_MATCH.
These can be bitflagged (add the values together), however at most one grammar option must be chosen out of ECMAScript, basic, extended, awk, grep, egrep.
Constants
| Constant
|
Value
|
Description
|
| REGEXP_ECMASCRIPT
|
0
|
|
| REGEXP_BASIC
|
1
|
|
| REGEXP_EXTENDED
|
2
|
|
| REGEXP_AWK
|
4
|
|
| REGEXP_GREP
|
8
|
| Use the regular expression grammar used by the grep utility in POSIX. This is effectively the same as the basic option with the addition of newline '\n' as an alternation separator.
|
|
| REGEXP_EGREP
|
16
|
| Use the regular expression grammar used by the grep utility, with the -E option, in POSIX. This is effectively the same as the extended option with the addition of newline '\n' as an alternation separator in addition to '|'.
|
|
| REGEXP_ICASE
|
32
|
| Character matching should be performed without regard to case.
|
|
| REGEXP_NOSUBS
|
64
|
| When performing matches, all marked sub-expressions (expr) are treated as non-marking sub-expressions (?:expr).
|
|
See Also
Version
This constants group was added in 87.8193.35-40 of NWN:EE.