Regex

The Regex action enables the search and match of a sequence of characters to a specific pattern.

The Regex action on a blank board

The Regex action can be used to extract valuable information from a chunk of text (e.g., credit card number or zip code). Regex is often used to strip the “+” from the front of a cell phone number.

 

Check out the video below to learn more about using strings within your flow.

 

Available Variables

Available Variables are placeholders for information that are automatically determined based on the contents of your flow. For example, if your flow begins with an Inbound Call trigger, the caller's phone number is stored as a $ANI variable. Later on in your flow, you can send a follow up SMS to the caller by adding the $ANI variable in the Send SMS/MMS action Inputs.

Check out How to Use Variables in SmartFlows for more information.

Inputs

Input Name Description
Regex* Characters used to define the desired search pattern. *This is a required field.
Regex Groups Text matched by the Regex that is extracted from the input. Groups are referenced by number.
Input* The value or variable to match against your Regex. *This is a required field.

Action

Each Regex action includes two exit ports corresponding to the following outcomes:

  • On Regex Match: The course of the flow if a Regex match is found (port 1)

  • On Failure: The course of the flow if a Regex match is not found (port 2)

The port order cannot be rearranged.