Regex
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.
Limitations
Usage is limited to pattern matching for now. Value extraction will come in the future.
Patterns must start with
r/
and end with/
.
Examples
Filter for strings starting with b
b
["foo", "bar", "baz"].filter($this =~ r/^b/)
[
"bar",
"baz"
]
Last updated