MATCHES

Returns true if the string matches the provided regex pattern.

Usage

MATCHES(source, pattern)

Parameters

source

String

The string to search.

pattern

String

The regex pattern to match.

Returns

Boolean

Examples

MATCHES(‘Version 1.2’, ‘\d.\d’)

true

MATCHES(‘Version 2’, ‘\d.\d’)

false

Remarks

N/A