{"uid":"cap_6pFKp3kWVyeAtD8eO4jdV","slug":"delx-regex-test-53ca208d","name":"Delx Regex Test","description":"Test a regular expression and return matches, groups, and counts for $0.001 USDC. Call when you need this bounded result without an API key or subscription. Returns machine-readable JSON via x402 on Base or Solana. Limitation: results cover only the supplied input or one bounded public endpoint at request time; callers must verify before acting.","url":"https://api.delx.ai/api/v1/x402/regex","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","bodyType","body"],"properties":{"body":{"type":"object","additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vphppoDRfmAE0taEDdhzZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Tests a regular expression against input text and returns all matches, capture groups, and match counts.","exampleAgentPrompt":"Test the regex pattern ^(\\d{4})-(\\d{2})-(\\d{2})$ against the string '2024-07-15' and show me all matches and capture groups.","exampleUseCases":[{"title":"Validate email format with regex","prompt":"Run the regex pattern ^[\\w.-]+@[\\w.-]+\\.\\w{2,}$ against 'user@example.com' and tell me if it matches and what the groups are."},{"title":"Extract all phone numbers from text","prompt":"Use the pattern (\\d{3})[-.\\s](\\d{3})[-.\\s](\\d{4}) to find all phone number matches in 'Call us at 800-555-1234 or 415.867.5309' and give me the count and groups."},{"title":"Debug a regex for log parsing","prompt":"Test my log-parsing regex \\[(ERROR|WARN|INFO)\\]\\s+(.*) against the line '[ERROR] disk quota exceeded' so I can see if the severity and message groups are captured correctly."}],"resultDescription":"Returns a structured result containing: all matched substrings, their positions/indices in the input, any named or numbered capture groups, and the total match count. If the pattern matches nothing, returns an empty match list with a count of zero.","failureModes":["Invalid or malformed regex pattern returns an error indicating the syntax issue","Missing required fields (pattern or input text) result in a validation error","Catastrophic backtracking patterns may time out","Unsupported regex flags or syntax variants may cause errors","Payment failure prevents endpoint from responding"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-use regex testing and extraction service without setting up a local runtime or language environment. It's ideal for agents that need to validate or extract data using regex patterns on the fly, especially in workflows where spinning up code execution infrastructure is impractical. At $0.001 USDC per call it is cost-effective for occasional or automated use.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:51:11.688Z","isFirstParty":false}