← All quick checks

Regex tester: matches, groups, replace and split

$0.0021 USD per call Pay per call via x402, no signup

This call tests a JavaScript (ECMAScript) regular expression against text you send, in match, test, replace or split mode, and returns every match with index, line, column and captured groups, or the replacement or split result. The pattern and flags follow JavaScript rules, and a run that hits the 3-second stop is not charged.

Call it

x402: GET https://shop.lordevo.com/api/quick/regex-test?pattern=(?%3Cyear%3E%5Cd%7B4%7D)-(?%3Cmonth%3E%5Cd%7B2%7D)&text=Released%202026-10%20and%202025-03. or POST the same fields as JSON to https://shop.lordevo.com/api/quick/regex-test · MCP tool regex_test at https://shop.lordevo.com/mcp

The first call answers HTTP 402 with the price ($0.0021 USD per call, USDC on Base); any x402 client pays and retries. Instant tools that fail or are refused are not charged. Discovery is free: /catalog.json, /openapi.json, /llms.txt.

Example

The catalog's own example for this tool (illustrative sample values, not a live result).

Input

{
  "pattern": "(?<year>\\d{4})-(?<month>\\d{2})",
  "text": "Released 2026-10 and 2025-03."
}

Output

{
  "tool": "regex-test",
  "pattern": "(?<year>\\d{4})-(?<month>\\d{2})",
  "flags": "",
  "flavor": "ECMAScript (JavaScript, V8)",
  "mode": "match",
  "text_length": 29,
  "group_count": 2,
  "group_names": [
    "year",
    "month"
  ],
  "matched": true,
  "match_count": 2,
  "matches": [
    {
      "index": 9,
      "end": 16,
      "line": 1,
      "column": 10,
      "match": "2026-10",
      "groups": [
        "2026",
        "10"
      ],
      "named": {
        "year": "2026",
        "month": "10"
      }
    },
    {
      "index": 21,
      "end": 28,
      "line": 2,
      "column": 1,
      "match": "2025-03",
      "groups": [
        "2025",
        "03"
      ],
      "named": {
        "year": "2025",
        "month": "03"
      }
    }
  ],
  "truncated": false,
  "notes": [
    "All matches are listed (the g flag is implied in match mode)."
  ]
}

All quick checks and prices · Guides · Errors and limits