The RegEX Variable block enables you to use regular expressions to extract or modify text data in your variables.

Inputs

☐ Variable Name (Required)

The name of the variable to process with RegEx.

Good Examples:

  • “emailText”
  • “phoneData”
  • “rawContent”

☐ Method (Required)

Choose how to apply the RegEx:

RegEx Operations

Description: Select the operation to perform.

Options:

    ☐ Match value (extract matching text)

    ☐ Replace value (substitute matching text)

Flags Available:

    ☐ g (global match)

    ☐ i (case insensitive)

    ☐ m (multiline)

☐ RegEx Pattern (Required)

The regular expression pattern to use.

Email Pattern

[\w.]+@[\w.]+\.\w{2,}

Phone Pattern (US Format)

\d{3}[-.]?\d{3}[-.]?\d{4}

URL Pattern

https?:\/\/\S+

Add flags after the pattern:

  • /pattern/g for global matching
  • /pattern/i for case-insensitive
  • /pattern/m for multiline

Usage Examples

1. Email Extraction

VariableemailText
MethodMatch
Extract email addresses from text

2. Phone Cleanup

VariablephoneNum
MethodReplace
Remove non-numeric characters from phone numbers

3. URL Finding

VariablepageContent
MethodMatch
Extract URLs from webpage content

4. Text Censoring

Variablecomment
MethodReplace
Replace inappropriate words with ****

Notes

  • Test patterns before using
  • Use appropriate flags as needed
  • Consider performance with large datasets
  • Backup variables before replacement operations