{"uid":"cap_zyR5yhaz3SR-AUjXUptkz","slug":"primeapi-regex-generator-d6fa0504","name":"PrimeAPI Regex Generator","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/generate","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.199877","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.199877/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.199877","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.199877","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3hj5Cw3YOMdjxo3vhgTsj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.199877","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a regular expression (regex) pattern based on a natural language description of the matching requirement","exampleAgentPrompt":"Generate a regex pattern that matches valid email addresses, including subdomains like user@mail.example.com.","exampleUseCases":null,"resultDescription":"The agent receives a generated regular expression pattern that matches the described input requirements, ready to use in code for validation or extraction tasks.","failureModes":["Ambiguous natural language description returns an overly broad or narrow pattern","Complex or contradictory requirements may produce an incorrect regex","Query too vague (e.g. 'match text') returns a generic or unhelpful pattern","Service unavailable or payment failure returns a 402 or 5xx error","Edge cases in the description may not be captured in the generated pattern"],"whenToPreferThis":"Choose this endpoint when you need to programmatically generate a regex from a plain-English description, especially within an AI agent workflow that requires string validation or extraction patterns without a human writing the regex manually. Prefer this over static regex libraries when the pattern requirement is dynamic or user-specified.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:04:54.035Z","isFirstParty":false}