Skip to main content
Glama

regex_regex_replace

Replace text patterns using regular expressions with support for backreferences and controlled replacement counts.

Instructions

[regex] Replace occurrences of pattern in text with replacement string. count=0 (default) replaces all. Replacement supports backreferences: \1, \g.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
patternYes
replacementYes
textYes
countNo
flagsNo
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0-co/agent-friend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server