match-pattern(a, b)


Returns true if the regular expression b matches the text a.

Description of Parameters


Parameter

Description

a

Text.

b

Regular expression.


Examples


Parameter a

Parameter b

Result

ABCabc

^\w+$

true

ABCabc

^\d+$

false

ABCabc

^[A-z]+$

true

ABCabc

^[A-Z]+$

false