- :logical
match?
check if string matches given regular expression
Parameters
match? string :string regex :string :regex
Attributes
in | :range | get matches within given range |
Returns
Examples
copymatch? "hello" {/l/} ; => true match? "hello" {/x/} ; => false match? "hello" "l" ; => true
copymatch?.in:0..1 "hello" {/l/} ; => false match?.in:2..4 "hello" {/l/} ; => true