Api Endpoint

Saylor Innovations Dev Tools

Regex tester - matches, capture groups and named groups for a JavaScript pattern against text

Open interactive test console

Offering

Provider
saylorinnovations.com
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Development
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://saylorinnovations.com/api/regex/test
MIME type
Not provided
First seen
2026-10-16T01:52:02.163Z
Last seen
Tags
regex, regular expression, pattern matching, capture groups, Developer tools

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.01 USDC
Atomic price: 10000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "10000",
    "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7"
  }
]

Observed health

Status
Healthy
Latest latency
84 ms
Average latency
500 ms
HTTP status
402
Last checked
Reachability
100% over 10 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "method": {
      "enum": [
        "GET",
        "POST",
        "PUT",
        "PATCH",
        "DELETE",
        "HEAD"
      ],
      "type": "string"
    },
    "queryParams": {
      "properties": {
        "flags": {
          "default": "g",
          "description": "Regex flags from g i m s u y d, each at most once (default g)",
          "pattern": "^[gimsuyd]{0,7}$",
          "type": "string"
        },
        "pattern": {
          "description": "JavaScript regular expression source without slashes, max 500 characters",
          "examples": [
            "(\\d{4})-(\\d{2})-(\\d{2})",
            "\\b[A-Z][a-z]+\\b"
          ],
          "maxLength": 500,
          "type": "string"
        },
        "text": {
          "description": "Text to search, max 5,000 characters",
          "maxLength": 5000,
          "type": "string"
        }
      },
      "required": [
        "pattern",
        "text"
      ],
      "type": "object"
    },
    "type": {
      "const": "http",
      "type": "string"
    }
  },
  "required": [
    "type",
    "method"
  ],
  "type": "object"
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET",
            "POST",
            "PUT",
            "PATCH",
            "DELETE",
            "HEAD"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "flags": {
              "default": "g",
              "description": "Regex flags from g i m s u y d, each at most once (default g)",
              "pattern": "^[gimsuyd]{0,7}$",
              "type": "string"
            },
            "pattern": {
              "description": "JavaScript regular expression source without slashes, max 500 characters",
              "examples": [
                "(\\d{4})-(\\d{2})-(\\d{2})",
                "\\b[A-Z][a-z]+\\b"
              ],
              "maxLength": 500,
              "type": "string"
            },
            "text": {
              "description": "Text to search, max 5,000 characters",
              "maxLength": 5000,
              "type": "string"
            }
          },
          "required": [
            "pattern",
            "text"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "checked_at": {
              "description": "Time the check was run (UTC)",
              "type": [
                "string",
                "null"
              ]
            },
            "engine": {
              "description": "Engine or model that produced the result",
              "type": [
                "string",
                "null"
              ]
            },
            "flags": {
              "description": "Flags that were applied",
              "type": "string"
            },
            "match_count": {
              "description": "Total matches found (before truncation)",
              "type": "number"
            },
            "matched": {
              "description": "True when at least one match was found",
              "type": "boolean"
            },
            "matches": {
              "description": "Up to 100 matches in order",
              "items": {
                "properties": {
                  "captures": {
                    "description": "Numbered capture groups, null when unmatched",
                    "items": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "type": "array"
                  },
                  "end": {
                    "description": "End offset (exclusive)",
                    "type": "number"
                  },
                  "index": {
                    "description": "Start offset in the input",
                    "type": "number"
                  },
                  "match": {
                    "description": "The matched text",
                    "type": "string"
                  },
                  "named": {
                    "description": "Named capture groups, or null",
                    "type": [
                      "object",
                      "null"
                    ]
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "pattern": {
              "description": "The pattern that was tested",
              "type": "string"
            },
            "text_length": {
              "description": "Text length",
              "type": [
                "number",
                "null"
              ]
            },
            "truncated": {
              "description": "True when more than 100 matches were found",
              "type": "boolean"
            }
          },
          "required": [
            "pattern",
            "matched",
            "match_count",
            "matches"
          ],
          "type": "object"
        },
        "type": {
          "const": "json",
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}