summaryrefslogtreecommitdiff
path: root/data/modules.example.conf
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2023-12-17 14:56:49 +0000
committerSadie Powell <sadie@witchery.services>2023-12-17 15:00:26 +0000
commit6acbd326f392a9a3a366947f6f9a05c7bdf7bc52 (patch)
tree14f11588e2a0f745d5b347114ae6442a61ebf0c5 /data/modules.example.conf
parentcb533b63ac57bd70bf38d4a13ef03517fada5468 (diff)
Add the regex_stdlib regular expression engine.
Unlike other regular expression engines this is available on all systems.
Diffstat (limited to 'data/modules.example.conf')
-rw-r--r--data/modules.example.conf24
1 files changed, 23 insertions, 1 deletions
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.