regex_test
Test a regular expression pattern against a string. Returns all matches including groups and indices for debugging and validation.
Instructions
Test a regular expression pattern against an input string. Returns all matches with groups and indices.
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 | The regex pattern (without delimiters) | |
| flags | No | Regex flags (default: 'g') | g |
| input | Yes | The string to test against |