# Vextorium Regex Tester

> Vextorium Regex Tester is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-20).

Test a regular expression against text, returning all matches with positions, capture groups, named groups, and optional substitution result

## Facts

- Endpoint: POST https://api.vextorium.com/regex-probar-pago?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vextorium-regex-tester-e1531633
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Bf2NowFhEdP6vqYF09rGh

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 vextorium-regex-tester-e1531633 -d '<json body>'
```

Example prompt: Test the regex pattern `(?P<user>[\w.]+)@(?P<dom>[\w.]+)` against the text 'Contact alice@example.com or bob@test.org' with case-insensitive flag, and also replace matches with '[REDACTED]'.

## When to prefer this

Choose this endpoint when you need server-side, safe regex execution with full match detail (positions, capture groups, named groups) without running untrusted patterns locally. It is especially useful when you want substitution results alongside match metadata in a single call, need protection against ReDoS via server-side time limits, or are working in an environment where executing arbitrary regex locally is undesirable.

## Known failure modes

- Invalid regex pattern returns an error (catastrophic backtracking is time-limited and killed safely)
- Missing required fields 'patron' or 'texto' returns a validation error
- Unsupported flag characters outside i, m, s, x cause an error
- Payment of 0.002 USDC not provided or rejected blocks the request
- Very large input text may be truncated or rejected

## How this service works

Test a regular expression against a text: every match with position, groups and named groups, plus the result of a substitution if you pass a replacement. Flags i, m, s, x. Time-limited, safe against catastrophic backtracking.

## Output

Returns whether the pattern matched, total number of matches, each match's text and start/end positions, positional capture groups, named capture groups, defined group count, group names list, and the full substitution result string if a replacement was provided.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "flags": {
   "type": "string"
  },
  "texto": {
   "type": "string"
  },
  "patron": {
   "type": "string"
  },
  "reemplazo": {
   "type": "string"
  },
  "max_coincidencias": {
   "type": "integer"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vextorium-regex-tester-e1531633/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
