Keragon’s Extract Pattern Text Helper enables you to extract specific portions of text that match defined patterns using regular expressions (regex). This is useful for extracting structured data such as IDs, email addresses, order numbers, or any other recognizable pattern within a text.
How to Use the Extract Pattern Text Helper
-
Open your workflow editor.
-
Click the + icon to add a new step.
-
In the step selection panel, click "Helpers".
-
From the Helpers options, select "Text Helpers".
-
Choose the "Extract Pattern" action.
-
Click the Text input field.
-
Use the Variable Selector to map the text value you want to search through.
-
Enter the Regular Expression in the Pattern field to define what you want to extract.
-
Example: To extract an email address, use the regex
\b[\w.-]+@[\w.-]+\.\w+\b
.
-
-
Click "Save" to apply changes.
-
Click "Test Step" to preview the result.
-
Go to the Outputs tab to view the extracted result(s).
Example Result:
-
Input Text:
"Your order confirmation code is ABC12345."
-
Regex Pattern:
"[A-Z]{3}\d{5}"
-
Output:
"ABC12345"