input: '[]'
output: ["true"]
- - title: "\\[Requires 1.5\\] `flatten`, `flatten(depth)`"
+ - title: "`flatten`, `flatten(depth)`"
body: |
The filter `flatten` takes as input an array of nested arrays,
evaluates to: true, true, false, false.
entries:
- - title: "\\[Requires 1.5\\] `test(val)`, `test(regex; flags)`"
+ - title: "`test(val)`, `test(regex; flags)`"
body: |
Like `match`, but does not return match objects, only `true` or `false`
input: '["xabcd", "ABC"]'
output: ['true', 'true']
- - title: "\\[Requires 1.5\\] `match(val)`, `match(regex; flags)`"
+ - title: "`match(val)`, `match(regex; flags)`"
body: |
**match** outputs an object for each match it finds. Matches have
output: [3]
- - title: "\\[Requires 1.5\\] `capture(val)`, `capture(regex; flags)`"
+ - title: "`capture(val)`, `capture(regex; flags)`"
body: |
Collects the named captures in a JSON object, with the name
input: '"xyzzy-14"'
output: ['{ "a": "xyzzy", "n": "14" }']
- - title: "\\[Requires 1.5\\] `scan(regex)`, `scan(regex; flags)`"
+ - title: "`scan(regex)`, `scan(regex; flags)`"
body: |
Emit a stream of the non-overlapping substrings of the input
output: ['"ab","cd","ef"']
- - title: "\\[Requires 1.5\\] `splits(regex)`, `splits(regex; flags)`"
+ - title: "`splits(regex)`, `splits(regex; flags)`"
body: |
These provide the same results as their `split` counterparts,
input: '("ab,cd", "ef, gh")'
output: ['"ab"', '"cd"', '"ef"', '"gh"']
- - title: "\\[Requires 1.5\\] `sub(regex; tostring)` `sub(regex; string; flags)`"
+ - title: "`sub(regex; tostring)` `sub(regex; string; flags)`"
body: |
Emit the string obtained by replacing the first match of regex in the
output: '"ZabcZabc"'
- - title: "\\[Requires 1.5\\] `gsub(regex; string)`, `gsub(regex; string; flags)`"
+ - title: "`gsub(regex; string)`, `gsub(regex; string; flags)`"
body: |
`gsub` is like `sub` but all the non-overlapping occurrences of the regex are
input: '[]'
output: ["true"]
- - title: "\\[Requires 1.5\\] `flatten`, `flatten(depth)`"
+ - title: "`flatten`, `flatten(depth)`"
body: |
The filter `flatten` takes as input an array of nested arrays,
evaluates to: true, true, false, false.
entries:
- - title: "\\[Requires 1.5\\] `test(val)`, `test(regex; flags)`"
+ - title: "`test(val)`, `test(regex; flags)`"
body: |
Like `match`, but does not return match objects, only `true` or `false`
input: '["xabcd", "ABC"]'
output: ['true', 'true']
- - title: "\\[Requires 1.5\\] `match(val)`, `match(regex; flags)`"
+ - title: "`match(val)`, `match(regex; flags)`"
body: |
**match** outputs an object for each match it finds. Matches have
output: [3]
- - title: "\\[Requires 1.5\\] `capture(val)`, `capture(regex; flags)`"
+ - title: "`capture(val)`, `capture(regex; flags)`"
body: |
Collects the named captures in a JSON object, with the name
input: '"xyzzy-14"'
output: ['{ "a": "xyzzy", "n": "14" }']
- - title: "\\[Requires 1.5\\] `scan(regex)`, `scan(regex; flags)`"
+ - title: "`scan(regex)`, `scan(regex; flags)`"
body: |
Emit a stream of the non-overlapping substrings of the input
output: ['"ab","cd","ef"']
- - title: "\\[Requires 1.5\\] `splits(regex)`, `splits(regex; flags)`"
+ - title: "`splits(regex)`, `splits(regex; flags)`"
body: |
These provide the same results as their `split` counterparts,
input: '("ab,cd", "ef, gh")'
output: ['"ab"', '"cd"', '"ef"', '"gh"']
- - title: "\\[Requires 1.5\\] `sub(regex; tostring)` `sub(regex; string; flags)`"
+ - title: "`sub(regex; tostring)` `sub(regex; string; flags)`"
body: |
Emit the string obtained by replacing the first match of regex in the
output: '"ZabcZabc"'
- - title: "\\[Requires 1.5\\] `gsub(regex; string)`, `gsub(regex; string; flags)`"
+ - title: "`gsub(regex; string)`, `gsub(regex; string; flags)`"
body: |
`gsub` is like `sub` but all the non-overlapping occurrences of the regex are