# Lordevo Regex Tester

> Lordevo Regex Tester is a paid API for AI agents from shop.lordevo.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Runs a JavaScript (ECMAScript) regular expression on text and returns matches with index, line, column, groups, or performs replace/split operations

## Facts

- Endpoint: GET https://shop.lordevo.com/api/quick/regex-test?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lordevo-regex-tester-3a87cd59
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_J3X3nwF660GxgWTWQrTWX

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 lordevo-regex-tester-3a87cd59
```

Example prompt: Run this JavaScript regex pattern `(\d{4})-(\d{2})-(\d{2})` with the global flag on the text 'Order placed on 2024-03-15 and shipped on 2024-04-01' in match mode, and give me all matches with their named groups and positions.

## When to prefer this

Choose this endpoint when you need server-side JavaScript-flavor regex execution without spinning up a runtime — especially useful for agents that need match positions (line/column), named capture groups, or safe execution with catastrophic-backtracking protection. Prefer over client-side regex when you need structured JSON output with rich metadata per match.

## Known failure modes

- Catastrophic backtracking patterns are terminated after 3 seconds and return a timeout/truncation note
- Invalid regex syntax returns an error response
- Pattern or text exceeding length limits (2,000 chars for pattern, 400,000 chars for text) may be rejected
- Invalid flags (outside [dgimsuyv]) are rejected by schema validation
- Invalid mode value returns an error

## How this service works

Regex tester: matches, groups, replace and split (JavaScript flavor): Runs a JavaScript (ECMAScript) regular expression on your text and returns every match with index, line, column, numbered and named groups, or the result of replace or split. Catastrophic patterns are stopped after 3 seconds and n

## Output

Returns a JSON object containing the regex pattern and mode used, a list of matches (each with the matched string, start/end index, line, column, numbered groups array, and named groups object), or for replace mode the resulting string, or for split mode an array of string parts. Also includes a matched boolean and any notes (e.g. truncation warnings if max matches is hit or the pattern timed out after 3 seconds).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "pattern",
      "text"
     ],
     "properties": {
      "mode": {
       "enum": [
        "match",
        "test",
        "replace",
        "split"
       ],
       "type": "string",
       "default": "match",
       "description": "match (all matches with groups, default), test (first match only), replace or split"
      },
      "text": {
       "type": "string",
       "maxLength": 400000,
       "description": "Text to run the regex on, up to 400,000 characters (POST for long text)"
      },
      "flags": {
       "type": "string",
       "pattern": "^[dgimsuyv]{0,8}$",
       "description": "Regex flags, e.g. gi (or write the pattern as /.../flags)"
      },
      "pattern": {
       "type": "string",
       "description": "JavaScript regular expression, up to 2,000 characters, either the bare pattern or /pattern/flags"
      },
      "replace": {
       "type": "string",
       "maxLength": 10000,
       "description": "Replacement for mode=replace ($1, $<name>, $&; default empty = delete matches)"
      },
      "max_matches": {
       "type": "string",
       "default": "100",
       "pattern": "^\\d{1,4}$",
       "description": "Matches to list, 1-1000 (default 100)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "tool",
      "pattern",
      "mode"
     ],
     "properties": {
      "mode": {
       "enum": [
        "match",
        "test",
        "replace",
        "split"
       ],
       "type": "string"
      },
      "tool": {
       "type": "string"
      },
      "flags": {
       "type": "string"
      },
      "notes": {
       "type": "array"
      },
      "parts": {
       "type": "array",
       "items": {
        "type": [
         "string",
         "null"
        ]
       }
      },
      "flavor": {
       "type": "string"
      },
      "result": {
       "type": "string"
  
… (truncated)
```

## More

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