regex_test
Test a regex pattern against input text and retrieve all matches with positions and capture groups.
Instructions
Test a regex pattern against input text. Returns all matches with positions and capture groups.
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>",
"input": "<input>"
},
"name": "regex_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Regular expression pattern | |
| input | Yes | Text to test against | |
| flags | No | Regex flags: g (global), i (case-insensitive), m (multiline), s (dotAll), u (unicode). Default: g |