1. Docs
  2. Formulas
  3. Functions

MATCH

Returns true if text contains the regex expression regex_to_match and false otherwise. Optionally, include a string containing [Ruby modifiers](https://docs.ruby-lang.org/en/master/Regexp.html#class-Regexp-label-Modes) – e.g. `i` for case insensitive mode.

Categories: Text

Syntax

MATCH(text, regex_to_match, [modifiers])

Examples

Example 1

Input

1
{
2
"my_action": {
3
"message": "The quick brown fox jumps over the lazy dog. It barked."
4
}
5
}

Formula

MATCH(my_action.message, "[A-Z]")

Output

true

Example 2

Input

1
{
2
"my_action": {
3
"message": "the quick brown fox jumps over the lazy dog. it barked."
4
}
5
}

Formula

MATCH(my_action.message, "[A-Z]")

Output

false

Example 3

Input

1
{
2
"my_action": {
3
"message": "the quick brown fox jumps over the lazy dog. it barked."
4
}
5
}

Formula

MATCH(my_action.message, "[A-Z]", "i")

Output

true

Sample actions

Event Transform
MATCH
Event Transform
My Action

Select an action to inspect

You can also click "Copy actions" and paste them in your Tines story to see how they work.

Was this helpful?
MATCH | Docs | Tines