diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-10-28 12:52:11 +0200 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-10-28 17:08:37 +0200 |
commit | 6dc01f74431a40dac698417d2947f0d8ddbd8c8c (patch) | |
tree | 069adb6512873012e60ebb601157a8d270bc4ed6 /doc/testscript.cli | |
parent | ebc6dcfe9e7eb7aeddeff808c1c0498508183263 (diff) |
Make $regex.*search() functions not to match empty substrings in non empty strings
Diffstat (limited to 'doc/testscript.cli')
-rw-r--r-- | doc/testscript.cli | 8 |
1 files changed, 5 insertions, 3 deletions
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| |