test_regex
Test a regular expression against sample text to see matching results, with configurable flags for global, case-insensitive, and multiline matching.
Instructions
Test a regular expression against text and see matches
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 |
|---|---|---|---|
| text | Yes | Text to test against | |
| flags | No | Regex flags (g, i, m, etc.) | g |
| pattern | Yes | Regex pattern (without delimiters) |