match-pattern()

This function returns "true" if the regular expression b matches the text a.

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