aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-10-28 12:52:11 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2024-10-28 17:08:37 +0200
commit6dc01f74431a40dac698417d2947f0d8ddbd8c8c (patch)
tree069adb6512873012e60ebb601157a8d270bc4ed6 /doc
parentebc6dcfe9e7eb7aeddeff808c1c0498508183263 (diff)
Make $regex.*search() functions not to match empty substrings in non empty strings
Diffstat (limited to 'doc')
-rw-r--r--doc/manual.cli5
-rw-r--r--doc/testscript.cli8
2 files changed, 8 insertions, 5 deletions
diff --git a/doc/manual.cli b/doc/manual.cli
index e16b0fa..8beb4ea 100644
--- a/doc/manual.cli
+++ b/doc/manual.cli
@@ -6128,8 +6128,9 @@ source <functions-target.cli>;
The \c{$regex.*()} function family contains function that provide
comprehensive regular expression matching and substitution facilities. The
-supported regular expression flavor is ECMAScript (more specifically,
-ECMA-262-based C++11 regular expressions).
+supported regular expression flavor is ECMAScript, more precisely,
+ECMA-262-based C++11 regular expressions. Note that the \c{match_not_null}
+flag is in effect unless the string being matched is empty.
In the \c{$regex.*()} functions the substitution escape sequences in the
format string (the \ci{fmt} argument) are extended with a subset of the Perl
diff --git a/doc/testscript.cli b/doc/testscript.cli
index 18dac41..7f7522d 100644
--- a/doc/testscript.cli
+++ b/doc/testscript.cli
@@ -2372,8 +2372,8 @@ continuations.
\h#syntax-regex|Output Regex|
Instead of literal text the expected result in output here-strings and
-here-documents can be specified as ECMAScript regular expressions (more
-specifically, ECMA-262-based C++11 regular expressions). To signal the use of
+here-documents can be specified as ECMAScript regular expressions, more
+precisely, ECMA-262-based C++11 regular expressions. To signal the use of
regular expressions the redirect must end with the \c{~} modifier, for
example:
@@ -3082,7 +3082,9 @@ illegal.
Note that this builtin implementation deviates substantially from POSIX
\c{sed} (as described next). Most significantly, the regular expression flavor
-is ECMAScript (more specifically, ECMA-262-based C++11 regular expressions).
+is ECMAScript, more precisely, ECMA-262-based C++11 regular expressions. Note
+that the \c{match_not_null} flag is in effect unless the line being matched
+is empty.
\dl|