diff options
author | Sadie Powell <sadie@witchery.services> | 2023-12-17 14:56:49 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2023-12-17 15:00:26 +0000 |
commit | 6acbd326f392a9a3a366947f6f9a05c7bdf7bc52 (patch) | |
tree | 14f11588e2a0f745d5b347114ae6442a61ebf0c5 /data | |
parent | cb533b63ac57bd70bf38d4a13ef03517fada5468 (diff) |
Add the regex_stdlib regular expression engine.
Unlike other regular expression engines this is available on all
systems.
Diffstat (limited to 'data')
-rw-r--r-- | data/anope.example.conf | 2 | ||||
-rw-r--r-- | data/modules.example.conf | 24 |
2 files changed, 24 insertions, 2 deletions
diff --git a/data/anope.example.conf b/data/anope.example.conf index 118f2f2f5..62eaa8154 100644 --- a/data/anope.example.conf +++ b/data/anope.example.conf @@ -527,7 +527,7 @@ options * * Note for this to work the regex module providing the regex engine must be loaded. */ - #regexengine = "regex/pcre" + #regexengine = "regex/stdlib" /* * A list of languages to load on startup that will be available in /NICKSERV SET LANGUAGE. diff --git a/data/modules.example.conf b/data/modules.example.conf index 6630bc750..fdf5b57be 100644 --- a/data/modules.example.conf +++ b/data/modules.example.conf @@ -412,11 +412,33 @@ module { name = "help" } * m_regex_posix [EXTRA] * * Provides the regex engine regex/posix, which uses the POSIX compliant regular expressions. - * This is likely the only regex module you will not need extra libraries for. */ #module { name = "m_regex_posix" } /* + * m_regex_stdlib + * + * Provides the regex engine regex/stdlib, which uses the regular expression library that is part of + * the C++ standard library. +*/ +module +{ + name = "m_regex_stdlib" + + /* + * The syntax scheme to use. Can be set to awk to use the regular expression grammar used by the + * awk utility in POSIX, basic to use the basic POSIX regular expression grammar, ecmascript to + * use the modified ECMAScript regular expression grammar, egrep to use the regular expression + * grammar used by the grep utility with the -E option in POSIX, extended to use the extended + * POSIX regular expression grammar, or grep to use the regular expression grammar used by the + * grep utility in POSIX. + * + * See https://en.cppreference.com/w/cpp/regex/syntax_option_type for more information. + */ + syntax = "ecmascript" +} + +/* * m_regex_tre [EXTRA] * * Provides the regex engine regex/tre, which uses the TRE regex library. |