{"uid":"cap_qCMi3c1SRKFDpWVjLteKP","slug":"moneytools-regex-tester-1b3e39bd","name":"MoneyTools Regex Tester","description":"Regex tester: Run a JavaScript regex on text: all matches with index and capture groups, optional replace, and a ReDoS warning for nested quantifiers. Free tier 10/day; then $0.001 via x402 (HTTP 402 + PAYMENT-REQUIRED) or X-API-Key credits. Not charged on failure. $0.001 USDC per call via x402 on Base. Run by MoneyTools.","url":"https://tools.moneytools.dev/v1/regex?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"type":"object","required":["pattern","text"],"properties":{"text":{"type":"string","examples":["due 2026-11-04 and 2026-12-01"],"description":"input text"},"flags":{"type":"string","examples":["g"],"description":"flags"},"pattern":{"type":"string","examples":["(\\d{4})-(\\d{2})-(\\d{2})"],"description":"regex source"},"replace":{"type":"string","description":"replacement string"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","properties":{"payment":{"type":"object","properties":{"charged":{"type":"boolean"},"network":{"type":"string"},"amountUsd":{"type":"string"},"transaction":{"type":["string","null"]}}},"freeTier":{"type":"object"},"_moneytools":{"type":"object","description":"optional plan / partner hints"}},"description":"Tool-specific JSON result (see llms.txt / openapi.json). Always includes payment info.","additionalProperties":true}}}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lxfbIIa4bI67eBenxEGSa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Run a JavaScript regex against text and return all matches with indices and capture groups, with optional replace and ReDoS detection","exampleAgentPrompt":"Run the regex (\\d{4})-(\\d{2})-(\\d{2}) with the global flag on this text: 'due 2026-11-04 and 2026-12-01' — give me all matches with their indices and capture groups.","exampleUseCases":[{"title":"Extract all dates from a document","prompt":"Use the pattern (\\d{4})-(\\d{2})-(\\d{2}) with global flag on this text: 'Invoice due 2026-11-04, follow-up 2026-12-01' — give me every match with its position and capture groups."},{"title":"Regex-powered text replacement","prompt":"Run this regex \\b(foo)\\b with the global flag on 'foo bar foo baz' and replace every match with 'qux' — show me the resulting string."},{"title":"Check regex for catastrophic backtracking","prompt":"Test the pattern (a+)+ against the text 'aaaaaaaaaaaaaaab' and warn me if it has any nested quantifiers that could cause ReDoS."}],"resultDescription":"A JSON object containing all regex matches (each with full match text, start index, and any capture groups), optionally the replaced string if a replacement was provided, a ReDoS warning if nested quantifiers are detected, and payment metadata including whether the call was charged, the network, and the transaction ID.","failureModes":["Missing required 'pattern' or 'text' query parameter returns an error without charge","Invalid regex syntax causes a parse error response without charge","Free tier of 10 calls/day exhausted triggers HTTP 402 requiring x402 micropayment or API key","Ambiguous or empty pattern may return zero matches without error","Very long input text combined with complex patterns may time out"],"whenToPreferThis":"Choose this endpoint when you need programmatic JavaScript-compatible regex matching with structured output (match indices, capture groups) rather than a simple pass/fail. It is especially useful when you also want ReDoS safety analysis on the pattern, or when you need a regex replace operation with full match details returned. It is priced at $0.001 per call via x402 on Base after a free tier, making it suitable for automated agent pipelines that need occasional regex processing without hosting their own compute.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-05T12:42:14.058Z","isFirstParty":false,"canonicalSlug":"moneytools-regex-tester-1b3e39bd"}