Regex Match
Searches a given input string with a specified regex pattern.
In Power Automate, search for Regex - Perform Match on Input String
Inputs
| Field | Type | Description |
|---|---|---|
| Input Stringrequired | string | The input text to search within. |
| Patternrequired | string | The regex pattern to match against the input string. |
| Case Sensitiveadvanced | string | Whether the match should be case sensitive. Options: TrueFalseDefault: False |
| Multilineadvanced | string | Whether the match should consider multiple lines. Options: TrueFalseDefault: True |
| Global Searchadvanced | string | Whether to find all matches or just the first. Options: TrueFalseDefault: True |
| Ignore Whitespaceadvanced | string | Whether to ignore whitespace in the regex pattern. Options: TrueFalseDefault: False |
| Single Lineadvanced | string | Whether dot matches any character including newline. Options: TrueFalseDefault: False |
Outputs
Returns an array; each item has these properties.
| Field | Type | Description |
|---|---|---|
| Match | string | The matched string. |
| Index | integer | The starting index of the match. |
| Length | integer | The length of the matched string. |
| End | integer | The ending index of the matched string. |
| Groups | array | An array of captured groups within the match. |
More Regex actions
Regex Replace
Replace a string with a regex pattern and a new value.
Regex Batch Match
Searches a given input string with multiple specified regex patterns.
Try Regex Match in your own flow
The Starter plan includes 250 calls every 30 days.