regex_match
Find all matches of a regular expression in text. Specify pattern and optional flags for case-insensitive, multiline, or dotall modes.
Instructions
Find all matches of a regular expression in 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": {
"text": "<text>",
"pattern": "<pattern>"
},
"name": "regex_match"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to search | |
| pattern | Yes | Regular expression pattern | |
| flags | No | Regex flags (i=ignorecase, m=multiline, s=dotall) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |