match
Split a string into an array of regex matches.Usage
z match <pattern>
Arguments
pattern
Mandatory. The regular expression pattern to be matched.
Type: pattern.
Examples
# matching all lowercase words
z match "[a-z]+"
# matching all whitespace characters
z match \s
# getting the lengths of each word
z match "[A-z]+" _ length
# counting words
z match "[A-z]+" _ count