the402 endpoint detail

← All endpoints

402utils.com v1 regex-test

https://402utils.com/v1/regex-test

answers 402

Test a regex against one or many inputs, safely. Send {pattern, flags?, input|inputs[], mode?}: 'match' returns the first match + capture groups, 'matchAll' every match, 'replace' the rewritten string (needs {replacement}). A mandatory ReDoS guard statically rejects catastrophic patterns (nested quantifiers, `.*.*$`, backrefs) BEFORE running — on Workers no timeout can stop a runaway regex. For ag

We sent a real POST request to this endpoint and it answered 402 with payment requirements we could parse.
Price
$0.001
Network
base
Pay to
0xc55A2D530b53CBaD1001e4AfD4720B7E71f9C291
Spec dialect
v2 (declares x402Version 2)
Transport
PAYMENT-REQUIRED header
HTTP method
POST
Response latency
1749 ms
Payment options
1 usable of 1
Last checked
2026-09-06T01:21:07.050Z (2h ago)
Category
ai-inference

Re-check it yourself:
curl "https://api.the402.dev/validate?url=https%3A%2F%2F402utils.com%2Fv1%2Fregex-test"