A regular expression from a description, with examples that must match and examp
A regular expression from a description, with examples that must match and examples that must not. The pattern is returned only when every example passes when tested in the service (one retry with the failures). Patterns with nested quantifiers are refused to avoid catastrophic backtracking. Examples are up to 10 strings of 300 characters each.
Answeringour last check, 2026-10-18
1 of 1checks answered this week
18 msmedian answer time
$0.002listed price per call
$0.002price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://api.sitecheck-api.workers.dev/api/regex/generate
| Category | Code and developer |
|---|---|
| Provider host | api.sitecheck-api.workers.dev |
| Networks | eip155:5042, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 2 from 2 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-10-18 | valid payment request | 402 | $0.002 | 18 ms |
Example input (from the provider)
{
"body": {
"description": "a five-digit postal code",
"matches": [
"12345",
"00501"
],
"nonMatches": [
"1234",
"123456",
"12a45"
]
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"description": {
"description": "What the pattern should match, in plain words (max 500 characters)",
"type": "string"
},
"matches": {
"description": "Strings the pattern must match (1-10 items, each max 300 characters)",
"type": "array"
},
"nonMatches": {
"description": "Strings the pattern must not match (0-10 items, each max 300 characters)",
"type": "array"
}
},
"required": [
"description",
"matches"
]
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}