81trust / 100

Regex

by Quartermaster Regex Tester in Other

x402 APIPassing, checked 2 h ago

Test a regular expression against text and return every match with numbered and named capture groups. Deterministic.

GET https://quartermaster.surewhynot.app/v1/regex

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
43 ms typical, 43 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://quartermaster.surewhynot.app/v1/regex?flags=g&pattern=%5Cb%5Cw%2B%40%5Cw%2B%5C.%5Cw%2B%5Cb&text=ping+a%40b.com+and+c%40d.org"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fquartermaster.surewhynot.app%2Fv1%2Fregex
const res = await pay("https://quartermaster.surewhynot.app/v1/regex?flags=g&pattern=%5Cb%5Cw%2B%40%5Cw%2B%5C.%5Cw%2B%5Cb&text=ping+a%40b.com+and+c%40d.org");
console.log(await res.json());

Example input

{
  "flags": "g",
  "pattern": "\\b\\w+@\\w+\\.\\w+\\b",
  "text": "ping [email protected] and [email protected]"
}

Example output

{
  "flags": "g",
  "match_count": 2,
  "matched": true,
  "matches": [
    {
      "index": 5,
      "match": "[email protected]"
    },
    {
      "index": 17,
      "match": "[email protected]"
    }
  ],
  "pattern": "\\b\\w+@\\w+\\.\\w+\\b",
  "truncated": false
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed40259 ms$0.001
7 h agoPassed40243 ms$0.001