test-regex
Test a regular expression pattern against any text to find matches, capture groups, and their positions. Validate regex quickly.
Instructions
Test a regular expression against 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>",
"text": "<text>"
},
"name": "test-regex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Regex pattern | |
| text | Yes | Text to test | |
| flags | No | Regex flags (default: g) | g |