Regex Replace

Replace a string with a regex pattern and a new value.

In Power Automate, search for Regex - Replace in Text

Inputs

FieldTypeDescription
Input StringrequiredstringThe input text to search within.
PatternrequiredstringThe regex pattern to match against the input string.
Replacement StringrequiredstringThe replacement string.
Case SensitiveadvancedstringWhether the match should be case sensitive.
Options: TrueFalse
Default: False
MultilineadvancedstringWhether the match should consider multiple lines.
Options: TrueFalse
Default: True
Global SearchadvancedstringWhether to find all matches or just the first.
Options: TrueFalse
Default: True
Ignore WhitespaceadvancedstringWhether to ignore whitespace in the regex pattern.
Options: TrueFalse
Default: False
Single LineadvancedstringWhether dot matches any character including newline.
Options: TrueFalse
Default: False

Outputs

FieldTypeDescription
Replaced StringstringThe result of the regex replace operation

More Regex actions

Try Regex Replace in your own flow

The Starter plan includes 250 calls every 30 days.

Get your API key