Regex tester
regex-testRuns a JavaScript regex over sample text and returns matches and groups (capped sizes). Returns { count, matches }: up to 100 matches, each { match, index, groups }. Price: 1 credit (1 credit = 1 CAD cent) per successful call; input that does not match the schema is rejected before billing.
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-test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Sample text to search, up to 2,000 characters. | |
| flags | No | Regex flags from g, i, m, s, u, y; g is always added. | g |
| pattern | Yes | JavaScript regular expression source, without slashes, up to 200 characters. |