Replace Text With Pattern
Description
This action searches for a specific pattern in a text and replaces it with something else.
Input Arguments
Input Argument | Type | Description | Required? | Advanced Option? | Default |
---|---|---|---|---|---|
Input Text | String | The text in which the search and replace operation will be performed. | ✔️ | ❌ | - |
Search Pattern | String | The pattern or testwhich should be replaced inside of the input text. | ✔️ | ❌ | - |
Replacement Text | String | Text which will be inserted instead of the search pattern into the input text. | ❌ | ❌ | - |
Output
Response | Type | Description |
---|---|---|
Replaced Text | String | The final text after replacing the pattern. |
body | JSON Object | A JSON object with the key text containing the final result. |
Power Automate Examples
Replace Text With Text
You can enter plain text to tell the action what to look for. The action will search for the pattern and return the text with the pattern replaced.
Replace Text With Regular Expression
You can also use a regular expression for the search pattern.
💡
Looking for the response to this example? Scroll up to see the Output tab.
Known Limitations
⚠️
If you experienced other limitations please get in touch with us!