Catalog
devPOSTlisted

Regex generator

Generate a regular expression from a plain-English pattern description.

h402 score
$0.015
per call
Success
p50 latency
p95 latency
Calls (30d)
0

Canonical contract

Proxy path
/api/proxy/dev/regex-generate
Method
POST
Selected provider
archtools
Settlement
Base USDC · x402

Quickstart

cURL
curl -X POST https://h402-test.hunt.town/api/proxy/dev/regex-generate
CLI
h402 call dev/regex-generate --json '{ ... }'

Sample input

requiredoptional
{
  "description": "match work email addresses",
  "test_strings": [
    "alice@linear.app",
    "support@gmail.com"
  ]
}

Sample output

Redacted, from a paid call
{
  "regex": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$",
  "explanation": "Matches a simple email address pattern.",
  "tests": [
    {
      "input": "alice@linear.app",
      "matches": true
    },
    {
      "input": "support@gmail.com",
      "matches": false
    }
  ]
}

Providers

Candidates competing behind this task. h402 routes each call to the best quality-adjusted option.

archtoolsselected
x402
Success
0%
p50
640ms
Calls
1
0%
$0.015$0.015/call
Last successful call: Never· Aggregated by h402 — not the source provider