Does this regex match — and what does it capture?
regex_testRuns a regular expression against sample text and returns every match with its position and capture groups (named groups included). Use before wiring a pattern into code, instead of guessing whether the escaping survived the trip through JSON and the shell.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pattern": "<pattern>",
"text": "<text>"
},
"name": "regex_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to test against. | |
| flags | No | Optional flags, e.g. "gi". Default "g". | |
| pattern | Yes | The regular expression, without surrounding slashes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||