regex_test
Test a regex pattern against text and return every match with its position, helping validate patterns and inspect match results.
Instructions
Test a regex pattern against text and return all matches with 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 (default: g). Options: g, i, m, s. | |
| pattern | Yes | Regular expression pattern. |