Regex
Limitations
Examples
Filter for strings starting with b
b["foo", "bar", "baz"].filter($this =~ r/^b/)
[
"bar",
"baz"
]
Last updated
Regex pattern are represented as unquoted strings, in the format of r/my regex pattern/.
Regex patterns can be used with the like =~ and not like !~ comparators.
Usage is limited to pattern matching for now. Value extraction will come in the future.
Patterns must start with r/ and end with /.
b["foo", "bar", "baz"].filter($this =~ r/^b/)
[
"bar",
"baz"
]
Last updated