# klymax402 Regex Generator & Tester

> klymax402 Regex Generator & Tester is a paid API for AI agents from klymax402.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Tests one or more strings against a regular expression pattern and returns match results with an explanation

## Facts

- Endpoint: GET https://klymax402.com/api/regex-generator/api/test
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/klymax402-regex-generator-tester-6a46a038
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JrB-d1mn8TFhVdE87vEcp

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 klymax402-regex-generator-tester-6a46a038
```

Example prompt: Test these three strings — 'hello@example.com', 'not-an-email', and 'user@domain.org' — against the regex pattern `^[\w.+-]+@[\w-]+\.[\w.]+$` with the 'i' flag and tell me which ones match.

## When to prefer this

Choose this endpoint when you need to test a regex pattern against multiple strings in a single call and also want a plain-English explanation of the pattern's behavior. It is well-suited for agents building data validation pipelines, debugging user-supplied regex, or batch-checking string lists without spinning up a code execution environment.

## Known failure modes

- Invalid regex pattern syntax causes an error response
- Empty testStrings array returns empty results
- Unsupported flag characters may be ignored or cause errors
- Very complex patterns with catastrophic backtracking may time out
- Payment failure (402) if USDC balance is insufficient

## How this service works

One MCP endpoint gives your AI agent access to 100 APIs -- crypto, DeFi, web, AI, finance and utilities. No API keys, USDC on Base from $0.003/call.

## Output

Returns a JSON object containing the original pattern and flags, an array of per-string match results (indicating whether each string matched and what was captured), the total number of matches across all test strings, and a human-readable explanation of what the regex pattern does.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "flags": {
   "type": "string",
   "description": "Regex flags: g, i, m, s, u (default: g)"
  },
  "pattern": {
   "type": "string",
   "description": "Regular expression pattern (without delimiters)"
  },
  "testStrings": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Array of strings to test against the pattern"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "flags": "example",
  "pattern": "example",
  "results": [],
  "explanation": "example",
  "totalMatches": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/klymax402-regex-generator-tester-6a46a038/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from klymax402.com](https://www.zero.xyz/host/klymax402.com/llms.txt)
