Regex Replace
Replace a string with a regex pattern and a new value.
In Power Automate, search for Regex - Replace in Text
Inputs
| Field | Type | Description |
|---|---|---|
| Input Stringrequired | string | The input text to search within. |
| Patternrequired | string | The regex pattern to match against the input string. |
| Replacement Stringrequired | string | The replacement 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
| Field | Type | Description |
|---|---|---|
| Replaced String | string | The result of the regex replace operation |
More Regex actions
Regex Match
Searches a given input string with a specified regex pattern.
Regex Batch Match
Searches a given input string with multiple specified regex patterns.
Try Regex Replace in your own flow
The Starter plan includes 250 calls every 30 days.