Extract Portion(s) from Your Text That Match a Pattern Using the "Extract Pattern" Text Helper

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

00:00: You can use the text helpers extract pattern action. 00:03: If you want to extract portion as from a text that match a pattern regular 00:08: expressions, 00:10: Click the plus icon in your canvas to add a new action. 00:14: Select the helpers tab. 00:17: Navigate to the text helper section, 4, text transformations. 00:22: Select the option for extracting patterns. 00:25: Click on the text input to open the variable selector. 00:29: Expand the data to select the text. 00:31: You are interested in extracting a pattern. 00:35: Choose the select option. 00:38: Enter the regular expression to extract a pattern from the text. 00:42: Click on the save button to save changes. 00:45: Select the test step option. 00:48: Access the input section. 00:51: Navigate to the output section. 00:54: This guy provided precise steps to utilize karigon for extracting 00:58: patterns from text using the text helpers extract pattern action.

  • 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"

Was this article helpful?
0 out of 0 found this helpful

Articles in this section

See more