# NexusAPI Regex Test

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

Tests a string against a regular expression pattern to determine if it matches

## Facts

- Endpoint: POST https://nexus-api-virid.vercel.app/api/tools/regex/test
- Price: $0.133649/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-8add5112
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dgPzc3JK2iFLXSC_2qIz7

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-8add5112 -d '<json body>'
```

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

## When to prefer this

Choose this endpoint when you need a quick, stateless regex match test without setting up a local regex engine or when building an agent workflow that needs to validate string formats on-the-fly. Useful for form validation pipelines, data cleaning agents, or code-generation agents that need to verify regex correctness.

## Known failure modes

- Invalid or malformed regex pattern causes an error response
- Empty input string may return false match
- ReDoS risk if a catastrophically backtracking pattern is provided
- Missing required query/pattern fields returns a 400 or error response
- Unsupported regex flags or syntax may fail depending on the underlying engine

## 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 provided input string matches the given regex pattern, typically including a boolean match result and optionally matched groups or capture positions.

## 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-8add5112/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nexus-api-virid.vercel.app](https://www.zero.xyz/host/nexus-api-virid.vercel.app/llms.txt)
