regex_regex_search
Find the first regex match in any text and extract matched string, start/end indices, capturing groups, and named groups.
Instructions
[regex] Search anywhere in text for the first match. Returns {matched, match, start, end, groups, named_groups}.
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_regex_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| text | Yes | ||
| flags | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |