Skip to content
Fourohtwo

wealth-agent.wealthagent-app.workers.dev/api/x402/regex

Apply one regular expression to a text blob on the server and return every match with its index and capture groups. Deterministic, so the same input always returns the same answer. Useful for log triage, field extraction and validation at scale.

BaseDown
POSThttps://wealth-agent.wealthagent-app.workers.dev/api/x402/regex

Uptime0.0% of 3 checks 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://wealth-agent.wealthagent-app.workers.dev/api/x402/regex", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"text":"ERROR timeout\nINFO ok\nERROR io","flags":"g","pattern":"ERROR (\\w+)"}),
});
console.log(await res.json());

Example input

{
  "text": "ERROR timeout\nINFO ok\nERROR io",
  "flags": "g",
  "pattern": "ERROR (\\w+)"
}