{"uid":"cap_RInDuQx-MKPp17B8VeKat","slug":"whatchuneed-regex-utility-e305e682","name":"whatchuneed Regex Utility","description":"320+ pay-per-call API endpoints across accommodation, LLM, code execution, crypto, medical, finance, and more. One API, one payment. Powered by x402 protocol.","url":"https://whatchuneed.vercel.app/api/util/regex","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"string","description":"Request input"}}},"responseSchema":{"type":"object","properties":{"result":{"type":"object","description":"Response data"},"status":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IerLbxR-dlfYHLvV2z9Q3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Applies a regular expression pattern to an input string and returns the match results","exampleAgentPrompt":"Can you run a regex match on this text — 'Contact us at support@example.com or sales@company.org' — using the pattern ([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}) to extract all email addresses?","exampleUseCases":[{"title":"Extract emails from raw text","prompt":"I have this block of text: 'Reach John at john.doe@acme.com and the team at team@startup.io' — can you run a regex to pull out all the email addresses using the pattern ([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,})?"},{"title":"Validate phone number format","prompt":"Check if the string '+1-800-555-0199' matches the pattern ^\\+?[1-9]\\d{1,14}$ so I know whether it's a valid international phone number format."},{"title":"Parse version numbers from log output","prompt":"I have a log line that says 'App version 2.14.3 deployed successfully' — can you use the regex (\\d+\\.\\d+\\.\\d+) to extract the version number from it?"}],"resultDescription":"Returns a result object containing regex match results such as matched substrings, captured groups, and a status field indicating success or failure of the operation.","failureModes":["Invalid or malformed regex pattern causes a processing error","Input string is missing from the request body","Regex pattern causes catastrophic backtracking, leading to timeout","Pattern matches nothing in the input, returning empty match results","Unsupported regex syntax or flags"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call regex execution without setting up your own compute environment, particularly in agentic workflows where pattern matching or text extraction is a one-off step within a larger pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:54:03.272Z","isFirstParty":false}