POST

Test regex against input; returns matches and capture groups. Native implementation

/v1/regex-test

Validation · natif

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/regex-test
Content-Type: application/json

{
  "regex": "example",
  "input": "example",
  "flags": "example"
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

// Endpoint-specific body after 402 settlement

Overview

Test regex against input; returns matches and capture groups. Native implementation.

Request schema

Body: JSON · application/json

FieldTypeDescription
regexstringrequired
inputstringrequired
flagsstringoptionalpattern: ^[gimsuy]*$
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/regex-test \
  -H "Content-Type: application/json" \
  -d '{
  "regex": "example",
  "input": "example",
  "flags": "example"
}'

402 payment flow omitted — see Integrations for settlement.