{"uid":"cap_hCrX7Yb9IOZfLZZjZM89L","slug":"quartermaster-regex-matcher-a883b6ff","name":"Quartermaster Regex Matcher","description":"Test a regular expression against text and return every match with numbered and named capture groups. Deterministic.","url":"https://quartermaster.surewhynot.app/v1/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","maxLength":20000,"description":"Text to match against"},"flags":{"type":"string","description":"Any of g i m s u y (g always applied)"},"pattern":{"type":"string","maxLength":1000,"description":"Regular expression source"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_F4V98IKr4c3WBZx2rZKho","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":"Tests a regular expression against text and returns all matches with numbered and named capture groups","exampleAgentPrompt":"Run this regex pattern `(?P<year>\\d{4})-(?P<month>\\d{2})-(?P<day>\\d{2})` against the text \"Order placed on 2024-03-15 and shipped on 2024-03-18\" using the i flag, and give me every match with its named capture groups.","exampleUseCases":null,"resultDescription":"A list of all matches found in the text, each with its full match string, the positions of the match, numbered capture groups (by index), and named capture groups (by name) — deterministic and reproducible for the same inputs.","failureModes":["Invalid regex pattern syntax — returns an error indicating the pattern could not be compiled","Text exceeds 20,000 character limit — request rejected with validation error","Pattern exceeds 1,000 character limit — request rejected","Invalid flag characters supplied — only g i m s u y are accepted","No matches found — returns an empty matches array rather than an error"],"whenToPreferThis":"Use this endpoint when you need deterministic, server-side regex matching with structured capture group output — particularly when you need both numbered and named groups returned in a machine-readable format. Prefer this over client-side regex when the agent cannot execute code locally, or when you need a reliable, reproducible extraction step in a workflow pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:53:14.420Z","isFirstParty":false}