Regex Match

Extracts values from a piece of text using a regular expression pattern. Use it to pull entities such as order numbers, tracking codes or emails out of free text like a customer message.

What it does

  • Applies the regular expression pattern you provide to the original text.
  • Returns the first match as a single value and, optionally, all matches as a list.
  • Lets you control case sensitivity, whether to clean the text first, and whether to include new lines.
  • Reports whether a match was found through the Success flag.

Inputs

NameTypeDescription
Original TextStringOriginal text
PatternStringRegex pattern to match
Case SensitiveBooleanWhether the match is case sensitive
Clean TextBooleanWhether to clean the text before matching
Include New LinesBooleanWhether to include new lines
GloballyBooleanWhether to match all matched values

Outputs

NameTypeDescription
SuccessBooleanWhether the replacement was successful
Result ValueStringResult value of the replacement
Match ListListMatch List

Notes

  • Set Globally to true to return every match in Match List; leave it false to return just the first match in Result Value.
  • Clean Text and Include New Lines adjust how the text is prepared before matching, which is useful for messy multi-line input.