{"uid":"cap_D6yrigCWzDOxtEcuWgBRC","slug":"regex-match-backtracking-risk-analyzer-efd9920b","name":"Regex Match & Backtracking Risk Analyzer","description":"Paid micro-utilities for cold-email outreach agents: domain deliverability audits, cold-email grading, template generation, plus a tools toolbox (hashing, JWT decode, IDs, slugs, JSON, regex, crypto prices, domain age, weather). Paid via x402 (USDC on Base). One signature per call. No keys. FREE CHECK: GET /preview/<paid-path> (same URL with /preview/ prefix) returns a 200 demo sample - verify output shape before paying. PAID CALL: GET the url -> 402 challenge -> sign + retry with X-PAYMENT -> settled on-chain (USDC, Base). Ready-to-paste client: GET /llms.txt section \"Pay in one call\". Catalog+MCP twin: /llms.txt.","url":"https://sigtap-outreach-api.sigtap.workers.dev/tools/regex","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":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"count":2,"matches":[{"index":0,"match":"42","groups":[]}],"pattern":"\\d+","backtracking_risk":{"risk":"low","reasons":[]}}},"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_JikvqMnuiS7-Z1zh4N7zS","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":"Runs a regex pattern against input text and returns all matches with capture groups, total match count, and a backtracking-risk heuristic","exampleAgentPrompt":"Run the regex pattern \\d{4}-\\d{2}-\\d{2} against this string 'Order placed on 2024-03-15 and shipped on 2024-04-01' and tell me all the matches, capture groups, and whether the pattern has any backtracking risk.","exampleUseCases":[{"title":"Extract all dates from log output","prompt":"Run the pattern (\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}) against this log blob and give me every match with its index and capture groups: '2024-01-10T08:23:11 ERROR disk full, 2024-01-10T09:01:44 INFO restarted'"},{"title":"Check regex for ReDoS vulnerability","prompt":"I want to use the pattern (a+)+ in my API input validator — before I ship it, can you check how many times it matches against 'aaaaab' and tell me if it has a high backtracking risk?"},{"title":"Parse key-value pairs from config string","prompt":"Use the regex (\\w+)=(\\S+) to extract all key-value pairs from this config line: 'host=localhost port=5432 dbname=mydb user=admin timeout=30' and show me the groups and total count."}],"resultDescription":"A JSON object containing: the original pattern, total count of matches, an array of match objects each with the matched string, its character index in the input, and any capture groups, plus a backtracking_risk object with a risk level (low/medium/high) and an array of reasons explaining any detected risks.","failureModes":["Invalid regex pattern syntax returns an error","Missing required 'input' parameter returns a validation error","Extremely long input strings may time out on the Cloudflare Worker","Pattern with no matches returns count 0 and an empty matches array","Malformed query parameters return 400-level errors"],"whenToPreferThis":"Choose this endpoint when you need to both execute a regex match AND get a safety assessment of the pattern's backtracking risk in a single call — particularly useful before deploying regex patterns to production systems where ReDoS attacks are a concern. Prefer this over a plain regex library when you want structured match results with group extraction and a heuristic risk flag without setting up local infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:42:14.326Z","isFirstParty":false}