The "regex_stdlib" Module (v4)
Description
This module provides the stdregex
regular expression engine which uses the C++11 std::regex regular expression matching system.
Configuration
To load this module use the following <module>
tag:
<module name="regex_stdlib">
<stdregex>
The <stdregex>
tag defines settings about how the regex_stdlib module should behave. This tag can only be defined once.
Name | Type | Default Value | Description |
---|---|---|---|
type | Text | ecmascript | The regular expression grammar to use when matching. |
The type field should be set to one of the following values:
Value | Description |
---|---|
awk | Use the regular expression grammar used by the awk utility in POSIX. |
bre | Use the basic POSIX regular expression grammar. |
ecmascript | Use the modified ECMAScript regular expression grammar. |
egrep | Use the regular expression grammar used by the grep utility, with the -E option, in POSIX. |
ere | Use the extended POSIX regular expression grammar. |
grep | Use the regular expression grammar used by the grep utility in POSIX. |
Example Usage
<stdregex type="ecmascript">