How to apply text parser with regex on Make
Use Make's Text Parser module with regex patterns to extract specific data from text strings. Configure the pattern, test with sample data, and connect to other modules in your scenario.
Prerequisites
- Active Make account
- Basic understanding of regular expressions
- Text data to parse
- Familiarity with Make scenarios
Step-by-Step Instructions
Add Text Parser Module to Your Scenario
Configure the Text Input
Enter Your Regex Pattern
() to create capture groups for the data you want to extract. For example, use Email: ([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}) to extract email addresses.Set Global and Multiline Options
Configure Case Sensitivity
Test the Configuration
Map Parsed Data to Subsequent Modules
$1, $2, etc.). Map these variables to the appropriate fields in your subsequent modules.Handle No Match Scenarios
Common Issues & Troubleshooting
Regex pattern not matching expected text
Verify your regex syntax and test it with online tools like regex101.com. Check for special characters that need escaping with backslashes.
Only getting first match instead of all matches
Ensure Global match is set to Yes in the Text Parser module configuration.
Captured groups showing as undefined
Check that your regex pattern includes parentheses () around the parts you want to capture. Verify the pattern matches the text structure.
Module execution fails with no matches
Add error handling using Break or Rollback directives, or use conditional filters to check if matches exist before processing.