REGEXP_FORMAT_* Constant Group

From NWN Lexicon
Jump to navigationJump to search


Format settings for RegExpReplace. Do not mix with other regex functions (such as RegExpMatch and RegExpIterate).

These can be bitflagged (add the values together) for multiple options.

Constants

Constant Value Description
REGEXP_FORMAT_DEFAULT 0
Use ECMAScript rules to construct strings (http://ecma-international.org/ecma-262/5.1/#sec-15.5.4.11)
REGEXP_FORMAT_SED 256
Use POSIX sed utility rules (http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html#tag_20_116_13_03)
REGEXP_FORMAT_NO_COPY 512
Do not copy un-matched strings to the output
REGEXP_FORMAT_FIRST_ONLY 1024
Only replace the first match

See Also

functions: 

REGEXP

REGEXP_MATCH

Version

This constants group was added in 87.8193.35-40 of NWN:EE.