regex_replace
Replace portions of text by matching a regex pattern and substituting with a replacement string, with optional flags.
Instructions
Replace text using a regex pattern
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to perform replacements on | |
| pattern | Yes | The regex pattern to match | |
| replacement | Yes | The replacement string | |
| flags | No | Regex flags (e.g., 'g', 'i', 'gi') | g |