Skip to main content
Glama

Plumbkit

Test a regular expression

regex_test
Read-onlyIdempotent

Runs a JavaScript regular expression against text and returns every match with its position and capture groups, or the text after replacement. Use it to verify a regex actually works before relying on it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
flagsNoOptional flags: i (ignore case), m (multiline), s (dotall), u (unicode), y (sticky). Global matching is always on.
patternYesRegex pattern without slashes, e.g. "(\\d{3})-(\\d{4})"
max_matchesNoDefault 100
replace_withNoOptional replacement string ($1, $<name> supported). If set, returns the replaced text too.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources