Skip to content
Fourohtwo

Test a JavaScript regular expression against text

api.ariaeren.dev/v1/regex/test

Test a JavaScript regular expression against text: returns up to 100 matches with index and capture groups (named groups included). Pattern max 200 chars, text max 5,000 chars, flags from dgimsuy.

BaseAnswering
GEThttps://api.ariaeren.dev/v1/regex/test

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.ariaeren.dev/v1/regex/test?text=2026-11+and+2027-01&flags=g&pattern=%28%5Cd%7B4%7D%29-%28%5Cd%7B2%7D%29");
console.log(await res.json());

Example input

{
  "text": "2026-11 and 2027-01",
  "flags": "g",
  "pattern": "(\\d{4})-(\\d{2})"
}