# Regex Explainer

> Regex Explainer is a paid API for AI agents from released-mph-process-lib.trycloudflare.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Accepts a regular expression and returns a plain-English explanation of what it matches and how it works.

## Facts

- Endpoint: POST https://released-mph-process-lib.trycloudflare.com/v1/regex-explain?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/regex-explainer-945a01e1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a77CwSWoKNWRHXAV6TCjI

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability regex-explainer-945a01e1 -d '<json body>'
```

Example prompt: 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])*")@

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Explain a regex in plain English. Paste the regex in message content.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "usage": {
   "type": "object"
  },
  "choices": {
   "type": "array"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/regex-explainer-945a01e1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from released-mph-process-lib.trycloudflare.com](https://www.zero.xyz/host/released-mph-process-lib.trycloudflare.com/llms.txt)
