Regex Explainer with Token Breakdown 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-10).
Explains a regular expression in plain English with a token-by-token breakdown, and optionally tests it against sample strings.
Explain a regular expression in plain English with token-by-token breakdown. Optionally test against sample strings.
A plain-English explanation of the regular expression with a detailed token-by-token breakdown describing what each part of the pattern matches, plus optional test results showing which sample strings match or fail the regex.
GEThttps://api.strale.io/x402/regex-explain?utm_source=zero.xyzUse this endpoint when a user needs to understand what a regular expression does without reading raw syntax, or when debugging whether a regex matches specific strings. Ideal for developers learning regex, code reviewers, or AI agents that need to verify regex logic before applying it.
{
"regex": "^[a-z]+@[a-z]+\\.[a-z]{2,}$",
"test_strings": [
"user@example.com",
"invalid.email",
"test@domain.co.uk"
]
}| Field | Type | Description |
|---|---|---|
| inputrequired | object |
{
"_meta": {
"payment": {
"method": "x402",
"price_usd": 0.054000000000000006,
"settlement_id": "0xf265a17ce9bff73dfde62babede230067e09d9b57ddf404dab4a7efe864bfd46"
},
"capability": "regex-explain",
"latency_ms": 3719,
"provenance": {
"source": "claude-haiku",
"fetched_at": "2026-06-13T04:22:58.017Z"
}
},
"breakdown": [
{
"token": "^",
"explanation": "Start of string anchor - ensures matching begins at the start"
},
{
"token": "[a-z]+",
"explanation": "One or more lowercase letters (the email local part/username)"
},
{
"token": "@",
"explanation": "Literal @ symbol required in the email"
},
{
"token": "[a-z]+",
"explanation": "One or more lowercase letters (the domain name)"
},
{
"token": "\\.",
"explanation": "Escaped literal dot/period character"
},
{
"token": "[a-z]{2,}",
"explanation": "Two or more lowercase letters (the top-level domain like com, co, uk)"
},
{
"token": "$",
"explanation": "End of string anchor - ensures matching ends at the end"
}
],
"test_results": [
{
"input": "user@example.com",
"matches": true,
"matched_text": "user@example.com"
},
{
"input": "invalid.email",
"matches": false,
"matched_text": null
},
{
"input": "test@domain.co.uk",
"matches": false,
"matched_text": null
}
],
"plain_english": "Matches lowercase email addresses with a local part, domain name, and a top-level domain of at least 2 characters, with no special characters allowed.",
"capture_groups": 0,
"common_matches": [
"user@example.com",
"test@domain.co",
"hello@world.org",
"abc@def.info"
],
"flags_detected": {
"g": false,
"i": false,
"m": false
},
"original_regex": "^[a-z]+@[a-z]+\\.[a-z]{2,}$",
"common_non_matches": [
"invalid.email",
"user@example",
"User@Example.Com",
"test@domain.c",
"test@123.com",
"test@domain.co.uk"
]
}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"