# DataVault Regex Matcher

> DataVault Regex Matcher is a paid API for AI agents from zetavault.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Applies a regular expression pattern to input text and returns match results, supporting optional regex flags

## Facts

- Endpoint: POST https://zetavault.vercel.app/api/regex
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datavault-regex-matcher-eea97e5e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IAC2Tfy7fjaU6YK0IImb3

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 datavault-regex-matcher-eea97e5e -d '<json body>'
```

Example prompt: Run a regex match on this text — 'Contact us at support@example.com or sales@company.org' — using the pattern ([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}) with the global flag 'g' to extract all email addresses.

## When to prefer this

Use this endpoint when you need server-side regex execution without relying on local code, or when building an agent pipeline that needs reliable pattern extraction from text as a discrete pay-per-call step. Prefer it over building custom code when regex matching is one step in a larger workflow.

## Known failure modes

- Invalid regex pattern syntax returns an error
- Missing required 'text' or 'pattern' fields returns a validation error
- Payment failure (402) if USDC balance is insufficient
- Regex execution timeout for catastrophically backtracking patterns
- Empty match result if pattern does not match the text

## How this service works

54 endpoints spanning local tools, live data feeds, and AI-powered text processing. Pay-per-call with USDC on Base.

## Output

Returns a JSON object with a 'success' boolean and a 'data' object containing the regex match results, such as matched substrings, capture groups, or match positions found in the input text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text",
  "pattern"
 ],
 "properties": {
  "text": {
   "type": "string"
  },
  "flags": {
   "type": "string"
  },
  "pattern": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datavault-regex-matcher-eea97e5e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from zetavault.vercel.app](https://www.zero.xyz/host/zetavault.vercel.app/llms.txt)
