RegexMatch

This Flow Script tutorial explains how to use the RegexMatch function with syntax and examples.

Description

The RegexMatch function returns a truth (Boolean) value indicating whether the given Regular Expression pattern matches the input.

Syntax

‌The syntax for the RegexMatch function is:

RegexMatch(input, pattern)

Parameters

input - the string to check.

pattern - the pattern to match.

Returns

‌The RegexMatch function returns True or False.

Example

Let's look at some RegexMatch function examples and explore how to use the RegexMatch function.‌

RegexMatch("abc", "\w{3}")
Result: TRUE

RegexMatch("123 45", "\w{3}")
Result: TRUE

RegexMatch("abc", "\d{3}")
Result: FALSE

RegexMatch("123 45", "\d{3}")
Result: TRUE

RegexMatch("123 45", "\d{4}")
Result: FALSE

RegexMatch("123 45", "\s{1}")
Result: TRUE

RegexMatch("123 45", "\s{2}")
Result: FALSE

Last updated