{"uid":"cap_0xgh2K4J4WwXy9chHCF0x","slug":"sindri-regex-test-redos-safe-62f10774","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://x402.outpimp.com/regexTest","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_PWj0HXzyaDs4Htr0fCY-s","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 in an isolated worker thread with a 500ms hard timeout to prevent catastrophic backtracking (ReDoS).","exampleAgentPrompt":"Can you test whether the regex pattern `^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$` matches the string `user@example.com`? Use case-insensitive matching.","exampleUseCases":[{"title":"Email format validation","prompt":"Test whether the regex `^[\\w.-]+@[\\w.-]+\\.[a-zA-Z]{2,}$` matches the string `john.doe@company.org` — I want to know if it's a valid email format."},{"title":"URL slug pattern check","prompt":"Does the pattern `^[a-z0-9]+(?:-[a-z0-9]+)*$` match the string `my-blog-post-title`? I need to confirm it's a valid URL slug."},{"title":"Potentially dangerous regex safety test","prompt":"I have a regex `(a+)+` and I want to test it against the string `aaaaaaaaaaaaaaaaaaaaaaab` — can you run it safely without the server hanging?"}],"resultDescription":"A boolean or match result indicating whether the regex pattern matched the test string, returned within 500ms or failing closed if the pattern causes catastrophic backtracking.","failureModes":["Pattern causes catastrophic backtracking — times out at 500ms and returns a failure/timeout error","Invalid regex syntax — returns an error indicating the pattern is malformed","Pattern or test string exceeds character limits (200 chars for pattern, 10,000 for string) — returns a validation error","Invalid regex flags — returns an error for unrecognized flag characters"],"whenToPreferThis":"Choose this endpoint when you need to safely evaluate a regex against a string without risking ReDoS attacks or server hangs — especially when the pattern is user-supplied or untrusted. It is ideal for input validation workflows where regex correctness and bounded execution time are both required. Prefer it over a local regex engine when operating in a sandboxed or constrained environment that can't safely time out runaway patterns.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:32:48.945Z","isFirstParty":false}