{"uid":"cap_nOu3yvGIXq6lRk56tyiS9","slug":"primeapi-regex-test-cd4b95f9","name":"PrimeAPI Regex Test","description":"Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.","url":"https://prime-api-seven.vercel.app/api/tools/regex/test","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"query":{"type":"string","description":"Search query or input parameter"}}},"responseSchema":{"type":"object","description":"API response data"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.144119","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.144119/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.144119","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.144119","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UUdoUJhI0CvdeQ5AMAOsS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.144119","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Tests whether a given string matches a regular expression pattern, returning match results","exampleAgentPrompt":"Test whether the string 'hello@world.com' matches the regex pattern '^[\\w.-]+@[\\w.-]+\\.\\w{2,}$' and tell me if it's a valid match.","exampleUseCases":[{"title":"Email validation for signup forms","prompt":"Check if 'user.name+tag@company.co.uk' matches a standard email regex pattern so I can validate it before processing the signup."},{"title":"Phone number format verification","prompt":"Test whether '(555) 123-4567' matches the pattern for a North American phone number and let me know if it's properly formatted."},{"title":"Social media handle validation","prompt":"Does '@username_123' match the regex pattern for valid Twitter handles? I need to verify it before storing it in our database."}],"resultDescription":"Returns the result of testing the input string against the provided regular expression, including whether it matched and any captured groups.","failureModes":["Invalid regex pattern returns an error response","Missing input string or pattern results in a 400-level error","Malformed JSON body causes request failure","Pattern with catastrophic backtracking may time out"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call regex test without setting up a local environment or managing API keys — ideal for agents that need on-the-fly string pattern validation as part of a larger workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:50:21.926Z","isFirstParty":false}