Skip to content
Fourohtwo

api.sitecheck-api.workers.dev/api/regex/generate

A regular expression from a description, with examples that must match and examples that must not. The pattern is returned only when every example passes when tested in the service (one retry with the failures). Patterns with nested quantifiers are refused to avoid catastrophic backtracking. Examples are up to 10 strings of 300 characters each.

BaseSolanaArcPolygonArbitrumWorld Chain+1Answering
POSThttps://api.sitecheck-api.workers.dev/api/regex/generate

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.sitecheck-api.workers.dev/api/regex/generate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"description":"a five-digit postal code","matches":["12345","00501"],"nonMatches":["1234","123456","12a45"]}),
});
console.log(await res.json());

Example input

{
  "description": "a five-digit postal code",
  "matches": [
    "12345",
    "00501"
  ],
  "nonMatches": [
    "1234",
    "123456",
    "12a45"
  ]
}

More from SiteCheckProvider status