# DataVault Regex Matcher

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

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

## Facts

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

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

Example prompt: Can you run the regex pattern `\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b` with the `gi` flags against this text and tell me all the email addresses it finds: 'Contact us at hello@example.com or support@company.org for help'?

## When to prefer this

Use this endpoint when you need server-side regex execution without local compute, when integrating regex matching into a pay-per-use AI agent pipeline, or when you want a simple REST interface to apply pattern matching as part of a DataVault workflow alongside other text processing and data enrichment endpoints.

## Known failure modes

- Invalid regex pattern returns an error or success:false
- Missing required 'text' or 'pattern' fields results in a 400-level error
- Malformed flags string may cause pattern compilation failure
- No matches found returns success:true with empty match data
- Payment not provided results in 402 Payment Required

## 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 regex match results (such as matched substrings, groups, and indices) found in the input text using the specified pattern and flags.

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