{"uid":"cap_a77CwSWoKNWRHXAV6TCjI","slug":"regex-explainer-945a01e1","name":"Regex Explainer","description":"Explain a regex in plain English. Paste the regex in message content.","url":"https://released-mph-process-lib.trycloudflare.com/v1/regex-explain?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"usage":{"type":"object"},"choices":{"type":"array"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TE8apWG5QGb_QX17XVaHU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Accepts a regular expression and returns a plain-English explanation of what it matches and how it works.","exampleAgentPrompt":"Can you explain what this regex does in plain English: ^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@","exampleUseCases":[{"title":"Debugging an unfamiliar regex","prompt":"I found this regex in our codebase and have no idea what it does — can you explain it in plain English: ^(\\d{3})-?(\\d{2})-?(\\d{4})$?"},{"title":"Understanding a validation pattern","prompt":"What does this regex actually match? I'm trying to understand if it correctly validates phone numbers: ^\\+?[1-9]\\d{1,14}$"},{"title":"Code review assistance","prompt":"A colleague submitted a PR with this regex for password validation and I need to understand it before approving: ^(?=.*[A-Z])(?=.*[a-z])(?=.*\\d)(?=.*[@$!%*?&])[A-Za-z\\d@$!%*?&]{8,}$ — can you break it down?"}],"resultDescription":"A natural-language explanation of the regex pattern describing what the overall pattern matches, what each component or group does, any anchors or flags, and practical examples of strings that would or would not match.","failureModes":["Empty or missing regex in the message body returns an error","Extremely long or deeply nested regex may time out or produce incomplete explanation","Malformed input that isn't a recognizable regex may return a generic or unhelpful explanation","Network errors from the Cloudflare tunnel may cause intermittent 502/503 responses","Payment failure via x402 protocol returns 402 before the request is processed"],"whenToPreferThis":"Choose this endpoint when a developer or agent needs a human-readable explanation of an existing regex pattern — particularly useful during code review, debugging, or onboarding onto an unfamiliar codebase. Prefer this over a general-purpose LLM call when you want a dedicated, paid-per-call microservice optimized specifically for regex explanation with consistent output format and low latency.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:30:19.436Z","isFirstParty":false,"canonicalSlug":"regex-explainer-945a01e1"}