Reference > Expressions > Built-in Functions > Regular Expression Functions > IsRegexMatch

IsRegexMatch

Determines whether a regular expression matches an input text value.

See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions for information about regular expressions.

Syntax

IsRegexMatch(text, exp)

Enabled for

Search/Dashboard No
Business Rules Yes
Quick Actions Yes
Workflow Objects No
Reports No

Parameters

text The text in which to look for a match.
exp The regular expression to match against the text.

Return Value

Returns a Boolean value of true if the regular expression matches the text.

Example

IsRegexMatch("this is a Test, isn't it?", /test/i)

In the above example, the function is looking for the word "test" and the word is case insensitive (because the "i" flag means it is case insensitive). Therefore, the above returns true because the word "test" is found in the text.