{"uid":"cap_JrB-d1mn8TFhVdE87vEcp","slug":"klymax402-regex-generator-tester-6a46a038","name":"klymax402 Regex Generator & Tester","description":"One MCP endpoint gives your AI agent access to 100 APIs -- crypto, DeFi, web, AI, finance and utilities. No API keys, USDC on Base from $0.003/call.","url":"https://klymax402.com/api/regex-generator/api/test","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"flags":{"type":"string","description":"Regex flags: g, i, m, s, u (default: g)"},"pattern":{"type":"string","description":"Regular expression pattern (without delimiters)"},"testStrings":{"type":"array","items":{"type":"string"},"description":"Array of strings to test against the pattern"}}},"responseSchema":{"type":"json","example":{"flags":"example","pattern":"example","results":[],"explanation":"example","totalMatches":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qpzByo594dipfoHDGMzmS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Tests one or more strings against a regular expression pattern and returns match results with an explanation","exampleAgentPrompt":"Test these three strings — 'hello@example.com', 'not-an-email', and 'user@domain.org' — against the regex pattern `^[\\w.+-]+@[\\w-]+\\.[\\w.]+$` with the 'i' flag and tell me which ones match.","exampleUseCases":[{"title":"Email format validation","prompt":"I have a list of email addresses — 'alice@gmail.com', 'bob@', 'carol@company.co.uk', and 'notanemail' — can you test them against a standard email regex pattern and tell me which ones are valid?"},{"title":"Phone number extraction check","prompt":"Test the strings '555-123-4567', '(800) 555-1234', '12345', and 'call me' against the pattern `\\d{3}[-.]?\\d{3}[-.]?\\d{4}` with the global flag and show me which ones match and how many total matches there are."},{"title":"Debug a broken regex","prompt":"My regex `^[A-Z][a-z]+\\s[A-Z][a-z]+$` is supposed to match full names like 'John Smith' — can you test it against 'John Smith', 'john smith', 'Alice', and 'Bob Jones' and explain why some don't match?"}],"resultDescription":"Returns a JSON object containing the original pattern and flags, an array of per-string match results (indicating whether each string matched and what was captured), the total number of matches across all test strings, and a human-readable explanation of what the regex pattern does.","failureModes":["Invalid regex pattern syntax causes an error response","Empty testStrings array returns empty results","Unsupported flag characters may be ignored or cause errors","Very complex patterns with catastrophic backtracking may time out","Payment failure (402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need to test a regex pattern against multiple strings in a single call and also want a plain-English explanation of the pattern's behavior. It is well-suited for agents building data validation pipelines, debugging user-supplied regex, or batch-checking string lists without spinning up a code execution environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:54:14.140Z","isFirstParty":false}