{"uid":"cap_J0Neqe5-H1Bv2cJPdU0go","slug":"httpay-regex-test-pattern-matching-via-x402-a43a1aeb","name":"HTTPay Regex Test — Pattern Matching via x402","description":"307 pay-per-call APIs (287 native + Universal Gateway proxying 37 services) powered by x402 and USDC on Base. Token intelligence, DeFi yields, MEV risk, AI tools, web scraping. No API keys, no subscriptions — pay $0.001–$0.05 per call.","url":"https://httpay.xyz/api/regex-test","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"description":"Test a regex pattern against text. POST JSON: {pattern, text, flags}. Returns all matches, capture groups, and match indices. Uses Node.js built-in RegExp."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bqKRimiSXUxyJ1j-6cQRv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Tests a regex pattern against a text string and returns all matches, capture groups, and match indices using Node.js RegExp","exampleAgentPrompt":"Test the regex pattern ^\\d{3}-\\d{2}-\\d{4}$ against the text '123-45-6789' with no flags and show me all matches and capture groups.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing all regex matches found in the text, any capture groups within those matches, and the start/end indices of each match — powered by Node.js built-in RegExp execution.","failureModes":["Invalid regex pattern syntax — returns error indicating malformed pattern","Missing required fields (pattern or text) — returns 400-style error","Payment not attached or insufficient USDC balance — x402 payment required error","Catastrophic backtracking on complex patterns may cause timeout"],"whenToPreferThis":"Use this endpoint when you need server-side regex execution with full Node.js RegExp semantics, capture group extraction, and match index data — especially useful when you want to validate or debug a regex without spinning up a local runtime, or when building an automated workflow that needs pattern matching as a pay-per-call step without API key management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:57:06.648Z","isFirstParty":false}