{"uid":"cap_6iZ5PeCeMku7mt6LRayy3","slug":"pitchpilot-regex-matching-tool-cb6f5e1e","name":"PitchPilot Regex Matching Tool","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).","url":"https://pitchpilot-outreach-api.pitchpilot-agents.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","required":["pattern","text"],"properties":{"text":{"type":"string","description":"Text to search"},"flags":{"type":"string","description":"Regex flags"},"pattern":{"type":"string","description":"Regular expression"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["count","matches"],"properties":{"count":{"type":"number"},"matches":{"type":"array","items":{"type":"object"}},"backtracking_risk":{"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_OACynh7h9UBTsZGFDum4M","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":"Executes a regular expression against input text, returning all matches, match indices, groups, and a backtracking risk assessment.","exampleAgentPrompt":"Run the regex pattern `\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}\\b` with the `i` flag against this text: 'Contact us at hello@example.com or support@pitchpilot.io for help' and tell me all the matches and their positions.","exampleUseCases":[{"title":"Extract emails from outreach copy","prompt":"Use regex `[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}` to find all email addresses in this text: 'Our team is reachable at john@acme.com, jane.doe@startup.io, and info@bigcorp.net' — give me every match and its position."},{"title":"Find all dollar amounts in a document","prompt":"Run the pattern `\\$\\d+(?:\\.\\d{2})?` against this text: 'Invoice total: $1200.00, discount applied: $50, final due: $1150.00' and return all the matches with their indices."},{"title":"Check regex for backtracking risk","prompt":"Test the pattern `(a+)+b` against the string 'aaaaaaaaaaaaaaaaac' and tell me if there's a high backtracking risk — I want to know before using this in production."}],"resultDescription":"A JSON object containing the total count of matches, an array of match objects each with the matched string, its index in the input, and any named or unnamed capture groups, plus a backtracking_risk object indicating risk level (low/medium/high) and the reasons for that assessment.","failureModes":["Missing required `pattern` or `text` query parameters returns an error","Invalid regex syntax (e.g. unbalanced brackets) returns a parse error","Extremely long input strings or catastrophically backtracking patterns may time out","Invalid flag characters in the `flags` parameter may cause a bad-request error","Payment not included or insufficient USDC balance results in HTTP 402"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to apply a regular expression to text and receive structured match data including positions and capture groups, especially when also needing a safety check on backtracking risk. Useful in outreach automation pipelines where pattern extraction from email bodies, lead data, or domain strings is needed without spinning up a local runtime.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:38:53.748Z","isFirstParty":false}