match?

check if string matches given regular expression


Parameters

match? string :string
       regex :string :regex

Attributes

in:rangeget matches within given range

Returns

  • :logical

Examples

copy
match? "hello" {/l/} ; => true match? "hello" {/x/} ; => false match? "hello" "l" ; => true

copy
match?.in:0..1 "hello" {/l/} ; => false match?.in:2..4 "hello" {/l/} ; => true

Related