regex_test
Test any regex pattern against text and view all matches with detailed group and position information.
Instructions
Test a regex pattern against text. Shows all matches with groups and positions.
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 | Text to test against | |
| flags | No | Regex flags (g, i, m, s, u) | g |
| pattern | Yes | Regex pattern |