{"uid":"cap_-F2ULTxic_VaMcvSV4PwQ","slug":"crypto-shark-fleet-regex-explainer-1657fd12","name":"Crypto Shark Fleet – Regex Explainer","description":"x402-paid AI utility workers on Base mainnet","url":"https://cryptoshark-fleet.duckdns.org/worker/regex-explain?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","maxLength":8000}}},"responseSchema":{"type":"json","example":{"model":"gpt-5.6-luna","result":"..."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__Y_2HgloKtIm-gFKxsN_h","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Accepts a regular expression string and returns a natural-language explanation of what it matches and how it works","exampleAgentPrompt":"Can you explain what this regex does in plain English: ^(?:[a-z0-9!#$%&'*+/=?^_{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@","exampleUseCases":[{"title":"Decoding an inherited codebase regex","prompt":"There's this regex in our legacy codebase: ^(\\d{1,3}\\.){3}\\d{1,3}$ — can you explain exactly what it matches and whether it actually validates IP addresses correctly?"},{"title":"Learning regex for form validation","prompt":"I'm trying to learn regex — can you explain what ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$ does step by step in plain English?"},{"title":"Debugging a failing regex filter","prompt":"My log filter regex (?i)(error|warn|crit)\\s+\\[\\d{4}-\\d{2}-\\d{2}\\] isn't matching the lines I expect — can you explain what it actually matches so I can figure out what's wrong?"}],"resultDescription":"A JSON response containing a model identifier (e.g. 'gpt-5.6-luna') and a 'result' field with a natural-language explanation of the submitted regular expression, detailing what the pattern matches, what each component means, and any notable behaviors or edge cases.","failureModes":["Input exceeds 8000 character limit — request rejected","Payment not provided or insufficient USDC — 402 Payment Required response","Malformed JSON body — 400 Bad Request","Ambiguous or empty regex input may produce a generic or unhelpful explanation","Model unavailability may cause timeout or 5xx error","Non-regex text submitted as input yields explanation of incorrect content"],"whenToPreferThis":"Choose this endpoint when a developer or agent needs a quick, AI-generated plain-English explanation of a regular expression pattern without setting up their own LLM infrastructure. It is especially useful for decoding complex or inherited regexes, learning regex syntax, or debugging patterns. At $0.04 USDC per call via x402, it is suitable for on-demand, per-request use cases where running a full LLM locally is impractical.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:49:49.637Z","isFirstParty":false,"canonicalSlug":"crypto-shark-fleet-regex-explainer-1657fd12"}