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
Successflag.
Inputs
| Name | Type | Description |
|---|---|---|
| Original Text | String | Original text |
| Pattern | String | Regex pattern to match |
| Case Sensitive | Boolean | Whether the match is case sensitive |
| Clean Text | Boolean | Whether to clean the text before matching |
| Include New Lines | Boolean | Whether to include new lines |
| Globally | Boolean | Whether to match all matched values |
Outputs
| Name | Type | Description |
|---|---|---|
| Success | Boolean | Whether the replacement was successful |
| Result Value | String | Result value of the replacement |
| Match List | List | Match List |
Notes
- Set
Globallyto true to return every match inMatch List; leave it false to return just the first match inResult Value. Clean TextandInclude New Linesadjust how the text is prepared before matching, which is useful for messy multi-line input.