regex-lab-mcp
v1.0.2Test, 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.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Regular expression pattern |
test_string * | string | String to test against |
flags | string | Regex flags (g, m, i, s) |
replace_regex
Replace matches in a string using a regex pattern and replacement string.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Regular expression pattern |
replacement * | string | Replacement string (supports $1 capture groups) |
test_string * | string | Input string |
flags | string | Regex flags |
validate_regex
Check if a regex pattern is syntactically valid.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Regex pattern to validate |