# x402-toolbox Regex Test

> x402-toolbox Regex Test is a paid API for AI agents from x402-toolbox.shablony-pro.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Tests whether a given string matches a specified regular expression pattern, returning a boolean result

## Facts

- Endpoint: GET https://x402-toolbox.shablony-pro.workers.dev/util/regex-test?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-toolbox-regex-test-38b2813f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6hn8sjanv5EXip_zZ2h3u

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 x402-toolbox-regex-test-38b2813f
```

Example prompt: Can you test if the string 'hello@example.com' matches the regex pattern '^[\w.]+@[\w]+\.[a-z]{2,}$' and tell me whether it's a valid match?

## When to prefer this

Choose this endpoint when you need a quick, deterministic regex match check with no signup or API key setup — ideal for AI agents that need to validate strings on-the-fly using x402 micropayments. Particularly useful in automated pipelines where regex validation is a lightweight step and you want to pay per use rather than maintain credentials.

## Known failure modes

- Missing or malformed regex pattern returns an error
- Invalid regex syntax may cause a 400 or error response
- Payment failure (insufficient USDC balance) prevents the call from completing
- Missing input string to test against the pattern
- Network timeout on the Cloudflare worker

## How this service works

309 deterministic pay-per-call tools for AI agents over x402 (USDC, Base). No signup, no API key: the payment is the identity.

## Output

Returns a JSON object with 'ok' (boolean indicating success of the call) and 'paid' (boolean confirming payment was processed), plus the match result indicating whether the provided input string satisfies the given regular expression pattern.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-toolbox-regex-test-38b2813f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.shablony-pro.workers.dev](https://www.zero.xyz/host/x402-toolbox.shablony-pro.workers.dev/llms.txt)
