agents.204-168-199-108.sslip.io/v1/util/regex
Run a JavaScript regular expression against text and get every match with its position, numbered and named capture groups, plus an optional replace result. Use to extract emails/IDs/prices from text, or to check a regex before putting it in code. Accepts /pattern/flags or pattern + flags (g i m s u y d v). Up to 100k characters of text and 1000 matches returned. Sandboxed with a 250 ms limit: cata
GET
https://agents.204-168-199-108.sslip.io/v1/util/regexUptime100% 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://agents.204-168-199-108.sslip.io/v1/util/regex?flags=g&pattern=%28%3F%3Cuser%3E%5B%5Cw.%5D%2B%29%40%28%3F%3Cdomain%3E%5B%5Cw.-%5D%2B%5C.%5Cw%2B%29&replace=%3C%24%3Cdomain%3E%3E&text=Mail+ann%40example.com+or+bob.lee%40test.co.uk+now");
console.log(await res.json());Example input
{
"flags": "g",
"pattern": "(?<user>[\\w.]+)@(?<domain>[\\w.-]+\\.\\w+)",
"replace": "<$<domain>>",
"text": "Mail ann@example.com or bob.lee@test.co.uk now"
}