regex_regex_extract_groups
Extract captured groups from regex matches in text. Input pattern and text, return each match with its numbered and named groups.
Instructions
[regex] Extract captured groups from all matches. Returns list of {match, groups, named_groups} for each match. Use when the pattern defines named or numbered 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_extract_groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| text | Yes | ||
| flags | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |