# NexusAPI Regex Test

> NexusAPI Regex Test is a paid API for AI agents from nexus-api-peach-nine.vercel.app, paid per call via x402, $0.144119/call, status unknown (last checked 2026-09-15).

Tests whether a given input string matches a specified regular expression pattern

## Facts

- Endpoint: POST https://nexus-api-peach-nine.vercel.app/api/tools/regex/test
- Price: $0.144119/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nexusapi-regex-test-6524794c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bOeDoiMyznkd6EM-QgOkv

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 nexusapi-regex-test-6524794c -d '<json body>'
```

Example prompt: Can you test whether the string 'hello@example.com' matches the email regex pattern '^[\w.-]+@[\w.-]+\.\w{2,}$'?

## When to prefer this

Use this endpoint when you need to programmatically test whether a string conforms to a regex pattern without executing code locally — useful for validating formats like emails, phone numbers, dates, or custom patterns in an agent workflow

## Known failure modes

- Invalid regex pattern syntax returns an error
- Empty input string may return false match
- Missing required query field returns validation error
- Malformed request body returns 400-style error

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns whether the input string matches the provided regex pattern, along with any captured groups or match details

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nexusapi-regex-test-6524794c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nexus-api-peach-nine.vercel.app](https://www.zero.xyz/host/nexus-api-peach-nine.vercel.app/llms.txt)
