Test a regex pattern against text (findall/search/fullmatch/split/sub) using a timeout-guarded engine so a catastrophic pattern fails fast instead of hanging.
Free tier eligible — 500 calls/month with a free key from /pricing; x402 pay-per-call above quota.
| Parameter | Type | Required | Description |
|---|---|---|---|
pattern | string | required | Regex pattern to test |
text | string | required | Text to match against |
mode | string | optional | findall | search | fullmatch | split | sub (default findall) |
flags | array | optional | List of flag letters: i, m, s, x |
replacement | string | optional | Replacement text (mode=sub only) |
timeout_ms | number | optional | Timeout guard in milliseconds, 0-2000 (default 200) |
curl -s https://wingmanprotocol.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "regex_tester", "arguments": {"pattern": "example", "text": "hello from an agent"}}}'curl -s https://wingmanprotocol.com/tools/regex_tester \
-H 'Content-Type: application/json' \
-d '{"pattern": "example", "text": "hello from an agent"}'Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/regex_tester from your browser.
X-Payment header, or get a free key at /pricing (500 calls/month, no card, no crypto).