{
  "x402Version": 2,
  "id": 33898,
  "slug": "33898",
  "resource": "https://x402.agentindex.world/regex/test",
  "description": "Test a regular expression against text; returns match status, capture groups and span.",
  "type": "http",
  "serviceName": "regex-test",
  "resourceType": "Developer Tool",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xb3F32bdfe8D07825BC0D7387295aB1D7559BA69d",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "groups": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "title": "Groups",
            "type": "array"
          },
          "matches": {
            "title": "Matches",
            "type": "boolean"
          },
          "span": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Span"
          }
        },
        "required": [
          "matches",
          "groups",
          "span"
        ],
        "title": "RegexTestOutput",
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "pattern": "(\\d{4})-(\\d{2})-(\\d{2})",
            "text": "Date: 2026-03-15"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "groups": [
              "2026",
              "03",
              "15"
            ],
            "matches": true,
            "span": [
              6,
              16
            ]
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "ignore_case": {
                    "default": false,
                    "title": "Ignore Case",
                    "type": "boolean"
                  },
                  "pattern": {
                    "title": "Pattern",
                    "type": "string"
                  },
                  "text": {
                    "title": "Text",
                    "type": "string"
                  }
                },
                "required": [
                  "pattern",
                  "text"
                ],
                "title": "RegexTestInput",
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "groups": {
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "title": "Groups",
                    "type": "array"
                  },
                  "matches": {
                    "title": "Matches",
                    "type": "boolean"
                  },
                  "span": {
                    "anyOf": [
                      {
                        "items": {
                          "type": "integer"
                        },
                        "type": "array"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Span"
                  }
                },
                "required": [
                  "matches",
                  "groups",
                  "span"
                ],
                "title": "RegexTestOutput",
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "regex",
    "pattern matching",
    "regular expression",
    "text matching",
    "bazaar"
  ],
  "sourceHost": "x402.agentindex.world",
  "lastUpdated": "2026-10-08T05:34:55.934Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T05:34:55.506Z"
  },
  "metadata": {
    "serviceName": "regex-test",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "pattern": "(\\d{4})-(\\d{2})-(\\d{2})",
              "text": "Date: 2026-03-15"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "groups": [
                "2026",
                "03",
                "15"
              ],
              "matches": true,
              "span": [
                6,
                16
              ]
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "ignore_case": {
                      "default": false,
                      "title": "Ignore Case",
                      "type": "boolean"
                    },
                    "pattern": {
                      "title": "Pattern",
                      "type": "string"
                    },
                    "text": {
                      "title": "Text",
                      "type": "string"
                    }
                  },
                  "required": [
                    "pattern",
                    "text"
                  ],
                  "title": "RegexTestInput",
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "groups": {
                      "items": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "title": "Groups",
                      "type": "array"
                    },
                    "matches": {
                      "title": "Matches",
                      "type": "boolean"
                    },
                    "span": {
                      "anyOf": [
                        {
                          "items": {
                            "type": "integer"
                          },
                          "type": "array"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "title": "Span"
                    }
                  },
                  "required": [
                    "matches",
                    "groups",
                    "span"
                  ],
                  "title": "RegexTestOutput",
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402.agentindex.world",
    "manifest_name": "x402.agentindex.world",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "groups": [
        "value"
      ],
      "matches": true,
      "span": null
    },
    "type": "string"
  }
}