{"uid":"cap_0AseMkN7cUym7Am1D61v3","slug":"sindri-regex-test-redos-safe-a81f004c","name":"Sindri Regex Test (ReDoS-Safe)","description":"Tests a regular expression pattern against a string, guarded against catastrophic backtracking (ReDoS) by running the match in an isolated worker thread with a hard 500ms timeout that fails closed.","url":"https://ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/regexTest?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"flags":{"type":"string","default":"","description":"Regex flags (g, i, m, s, u, y). Optional."},"pattern":{"type":"string","description":"Regular expression pattern (without slashes). Max 200 characters."},"testString":{"type":"string","description":"String to test the pattern against. Max 10,000 characters."}}},"responseSchema":null,"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_6rtyIb5RlDoaSYIQxxalY","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":"Tests a regular expression pattern against a string with built-in protection against catastrophic backtracking (ReDoS) via a 500ms isolated worker thread timeout.","exampleAgentPrompt":"Test whether the regex pattern `^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}$` with flag `i` matches the string `User@Example.COM` — use the ReDoS-safe regex tester.","exampleUseCases":[{"title":"Validate user input format safely","prompt":"Check if the string '2024-07-15' matches the regex pattern `^\\d{4}-\\d{2}-\\d{2}$` — I want to make sure user-submitted dates follow ISO format without risking a regex denial-of-service."},{"title":"Debug a complex regex pattern","prompt":"Test whether the pattern `(a+)+$` with no flags matches the string 'aaaaaaaaab' — I'm trying to understand why this regex is slow and want to see if it times out safely."},{"title":"Filter log lines by pattern","prompt":"Does the string 'ERROR 2024-07-15 disk quota exceeded on /var/log' match the regex `^ERROR.*disk quota` with the `i` flag? I want to check this pattern before using it in my log parser."}],"resultDescription":"Returns a JSON object indicating whether the test string matched the given regex pattern, along with any match details. If the regex causes catastrophic backtracking and exceeds the 500ms timeout, the call fails closed (returns a failure/timeout result rather than hanging).","failureModes":["Pattern causes ReDoS — 500ms timeout triggers and call fails closed","Pattern exceeds 200 character limit — returns validation error","testString exceeds 10,000 character limit — returns validation error","Invalid regex syntax — returns parse error","Invalid flags provided — returns error","Network or Lambda cold-start latency causing unexpected delay"],"whenToPreferThis":"Choose this endpoint when you need to safely evaluate a regular expression against a string and cannot risk a runaway ReDoS attack hanging your pipeline. Ideal for user-supplied or untrusted regex patterns, or when validating input in a production agent workflow where reliability is critical. Prefer over a bare regex eval when the pattern complexity is unknown or could be malicious.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T18:46:21.377Z","isFirstParty":false,"canonicalSlug":"sindri-regex-test-redos-safe-a81f004c"}