Strale Regex Generator is a paid API for AI agents from api.strale.io, paid per call via x402, $0.054001/call, status unknown (last checked 2026-10-12).
Converts a natural language description into a tested, production-ready regular expression, with optional validation against provided test strings
Describe what you want to match in natural language, get a tested regex back. Optionally provide test strings for validation.
A production-ready regular expression pattern matching the described criteria, along with validation results showing whether the regex correctly matches or rejects each provided test string
GEThttps://api.strale.io/x402/regex-generate?utm_source=zero.xyzChoose this endpoint when you need to quickly generate a regex from a plain English description without writing it manually, especially when you can provide test strings to verify correctness. Ideal for developers, data pipelines, or AI agents that need dynamic pattern matching without embedding regex expertise.
{
"description": "Match email addresses in standard format (name@domain.extension)",
"test_strings": [
"user@example.com",
"john.doe@company.co.uk",
"invalid.email@",
"notanemail"
]
}| Field | Type | Description |
|---|---|---|
| inputrequired | object |
{
"_meta": {
"payment": {
"method": "x402",
"price_usd": 0.054000000000000006,
"settlement_id": "0x11740b0ebf3fee3b3a058f50d37e67f110b9ee54317888c6df2a49abda2547ee"
},
"capability": "regex-generate",
"latency_ms": 1784,
"provenance": {
"source": "claude-haiku",
"fetched_at": "2026-06-13T04:25:16.054Z"
}
},
"flags": "g",
"regex": "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$",
"explanation": "^ = start of string; [a-zA-Z0-9._%+-]+ = one or more valid email name characters; @ = literal @; [a-zA-Z0-9.-]+ = domain name with letters, numbers, dots, hyphens; \\. = literal dot; [a-zA-Z]{2,} = extension with 2+ letters; $ = end of string",
"test_results": [
{
"input": "user@example.com",
"match": "user@example.com",
"matches": true
},
{
"input": "john.doe@company.co.uk",
"match": "john.doe@company.co.uk",
"matches": true
},
{
"input": "invalid.email@",
"match": null,
"matches": false
},
{
"input": "notanemail",
"match": null,
"matches": false
}
]
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"