{
  "format": "delx/intent-card/v1",
  "id": "regex-test-api",
  "intent": "test a regular expression against text",
  "title": "Regex test API for agents",
  "description": "Evaluate a bounded regex pattern against text for $0.001 and return match details for agent pipelines.",
  "keywords": [
    "regex test API",
    "regular expression API",
    "pattern match API",
    "agent text validation",
    "x402 regex"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/regex-test-api",
  "machine_url": "https://commerce.delx.ai/intents/regex-test-api.json",
  "recommendation": {
    "tool_name": "util_regex_test",
    "service_name": "Delx Regex Test",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/regex",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "pattern": {
          "type": "string",
          "description": "Regular expression pattern"
        },
        "text": {
          "type": "string",
          "description": "Text to test against"
        },
        "flags": {
          "type": "string",
          "description": "Optional flags: i=ignorecase, m=multiline, s=dotall",
          "default": ""
        }
      },
      "required": [
        "pattern",
        "text"
      ],
      "additionalProperties": true
    },
    "example_input": {},
    "example_output": {},
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/regex -m POST -H 'x-delx-source: intent-card-regex-test-api' --max-amount 0.001 -b '{}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-regex-test-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/regex"
  }
}
