regex_regex_replace
Replace occurrences of a regex pattern in text with a replacement string. Supports backreferences and optional count limit.
Instructions
[regex] Replace occurrences of pattern in text with replacement string. count=0 (default) replaces all. Replacement supports backreferences: \1, \g.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| replacement | Yes | ||
| text | Yes | ||
| count | No | ||
| flags | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |