test_regex
Validate whether a regular expression pattern matches a given text, with optional flags for case-insensitivity or global matching.
Instructions
Test regular expressions against text
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 | Regular expression pattern | |
| text | Yes | Text to test against the regex | |
| flags | No | Regex flags (g, i, m, s, u, y) |