regex-lab-mcp

v1.0.2
io.github.ryudi84/regex-lab-mcp Checked 3 days ago Published 9 months ago

Test, explain, and generate regular expressions

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

test_regex

Test a regex pattern against a string. Returns all matches with positions and capture groups.

ParameterTypeDescription
pattern *stringRegular expression pattern
test_string *stringString to test against
flagsstringRegex flags (g, m, i, s)

replace_regex

Replace matches in a string using a regex pattern and replacement string.

ParameterTypeDescription
pattern *stringRegular expression pattern
replacement *stringReplacement string (supports $1 capture groups)
test_string *stringInput string
flagsstringRegex flags

validate_regex

Check if a regex pattern is syntactically valid.

ParameterTypeDescription
pattern *stringRegex pattern to validate