regex_tester
Test regular expressions against text and retrieve all matches, groups, and position details.
Instructions
Test a regular expression against text. Returns all matches, groups, and match 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_tester"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Regular expression pattern (without delimiters) | |
| text | Yes | Text to test against | |
| flags | No | Regex flags: g=global, i=case-insensitive, m=multiline, s=dotAll | g |