regex_test
Regex tester, test a regular expression and see matches. Test a JavaScript regular expression against a text: whether it matches, every match with its position and capture groups, and an optional replacement result. Send the pattern without slashes and flags separately (e.g. gi). Price: $0.002 per call (x402, USDC on Base).
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 | ||
| flags | No | g | |
| pattern | Yes | ||
| replace | No |