summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Trzesniewski <lucas.trzesniewski@gmail.com>2023-06-06 01:28:57 +0200
committerGitHub <noreply@github.com>2023-06-06 08:28:57 +0900
commitb7f9587bb9f250dade2af7ff270be250b21673b0 (patch)
tree086c6e2abc1fbc6ec9892bc9cd2d51873994b320
parent90bfa9624907b97acc7d8820ef190bef9b715e11 (diff)
docs: clarify split behavior (#2462)
-rw-r--r--docs/content/manual/manual.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/content/manual/manual.yml b/docs/content/manual/manual.yml
index e3d7e209..ffaefe5a 100644
--- a/docs/content/manual/manual.yml
+++ b/docs/content/manual/manual.yml
@@ -1612,6 +1612,9 @@ sections:
Splits an input string on the separator argument.
+ `split` can also split on regex matches when called with
+ two arguments (see the regular expressions section below).
+
examples:
- program: 'split(", ")'
input: '"a, b,c,d, e, "'
@@ -2425,7 +2428,10 @@ sections:
- title: "`split(regex; flags)`"
body: |
- For backwards compatibility, `split` splits on a string, not a regex.
+ Splits an input string on each regex match.
+
+ For backwards compatibility, when called with a single argument,
+ `split` splits on a string, not a regex.
example:
- program: 'split(", *"; null)'