# The Stall Regex Tester

> The Stall Regex Tester is a paid API for AI agents from the-stall.intuitek.ai, paid per call via x402, $0.034/call, status unknown (last checked 2026-09-13).

Tests a regular expression pattern against input text and returns all matches, capture groups, positions, and optionally a replaced output string.

## Facts

- Endpoint: GET https://the-stall.intuitek.ai/cap/regex-tester
- Price: $0.034/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/the-stall-regex-tester-98f6e4b0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5jADhd_TVNRRf9pN5kgnc

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 the-stall-regex-tester-98f6e4b0
```

Example prompt: Use the regex pattern `([a-z0-9._%+-]+)@([a-z0-9.-]+\.[a-z]{2,})` with flags `gi` to find all email addresses in this text: 'Please reach out to alice@example.com or bob@company.org for help.'

## When to prefer this

Use this endpoint when an AI agent needs to programmatically test, validate, or apply a regular expression against arbitrary text — especially when extracting structured data (emails, phone numbers, dates) or performing regex-based replacement. Prefer this over general LLM extraction when exact pattern fidelity and character-level match positions are required. Ideal for data pipelines, validation logic, and text parsing tasks where a human-readable regex is already known.

## Known failure modes

- Invalid regex pattern returns pattern_valid: false with an empty matches array
- Input text exceeding 50,000 characters is rejected
- Malformed query parameters result in a 400-level error
- Missing required 'pattern' or 'input' query params cause a validation error
- Payment not provided or insufficient USDC causes a 402 response

## How this service works

Safe regex testing and extraction. Validates a pattern, finds all matches (with capture groups), replaces text, and explains what the pattern matches. Zero external API calls — instant, deterministic. Useful for agents generating or debugging regex patterns mid-task, validating extracted data, or transforming text with precision.

## Output

Returns an array of match objects each containing the matched string, its character index, its length, and an array of capture group values. Also returns the total match count, whether the pattern was valid, the flags used, and a boolean indicating if more matches exist beyond the returned set. If a replace_with string was provided, returns the substituted output.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "flags": "gi",
   "input": "Contact us at support@example.com or sales@company.com for more information.",
   "pattern": "([a-z]+)@([a-z]+)\\.com"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/the-stall-regex-tester-98f6e4b0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from the-stall.intuitek.ai](https://www.zero.xyz/host/the-stall.intuitek.ai/llms.txt)
