regex_regex_match
Match a regular expression pattern at the beginning of text. Returns match details including groups and named groups. Use for start-of-string matching.
Instructions
[regex] Match a pattern at the START of text. Returns {matched, match, start, end, groups, named_groups}. Use regex_search for matching anywhere 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": {
"pattern": "<pattern>",
"text": "<text>"
},
"name": "regex_regex_match"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| text | Yes | ||
| flags | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |