{"uid":"cap_podVFSKpshOZAFsWNfOn8","slug":"regex-tester-api-3682d654","name":"Regex Tester API","description":"Test a regex pattern against input strings","url":"https://regex-generator.api.klymax402.com/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":null,"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_6BzBrjcmCEfMdBVVPkTKt","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 a regular expression pattern against one or more input strings and returns match results","exampleAgentPrompt":"Test the regex pattern `^[\\w.-]+@[\\w.-]+\\.\\w{2,}$` with the global and case-insensitive flags against these strings: 'user@example.com', 'not-an-email', 'admin@site.org', and 'bad@' — tell me which ones match.","exampleUseCases":[{"title":"Validate phone numbers across regions","prompt":"I need to check if these phone numbers follow a valid pattern: '555-123-4567', '(555) 123-4567', '+1-555-123-4567', and '555 123 4567'. Test them against a regex that captures the area code and line number separately, and let me know which ones are valid."},{"title":"Check username format compliance","prompt":"Can you test these usernames against a pattern that requires 3-16 characters, starting with a letter, and containing only letters, numbers, and underscores? Try: 'john_doe', '2invalid', '_nostart', 'ValidUser123', and 'x'. Tell me which ones pass."},{"title":"Extract domain names from URLs","prompt":"I have a list of URLs and need to verify they match a proper domain pattern while capturing the domain name separately. Test these against a regex: 'https://github.com', 'www.example.co.uk', 'invalid-url', 'ftp://files.org', and 'mysite.com'. Show me which ones match and what domains you extract."}],"resultDescription":"Returns which of the provided test strings match the given regex pattern, along with any captured groups or match details, evaluated under the specified flags (g, i, m, s, u).","failureModes":["Invalid regex pattern syntax returns an error","Missing required 'pattern' or 'testStrings' fields causes a 400-level error","Unsupported flag characters may be rejected","Empty testStrings array may return empty results without error","Very complex or catastrophically backtracking patterns may time out"],"whenToPreferThis":"Use this endpoint when you need a quick, server-side regex test against multiple strings without running code locally — ideal for agents validating user input formats, debugging regex patterns, or checking whether a list of strings conforms to a pattern rule.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:36:23.572Z","isFirstParty":false}