{"uid":"cap_wiMwuuhhdtSiwnvpVBkZl","slug":"aiskills402-regex-from-examples-skill-file-b9eefeb7","name":"AISkills402 — Regex From Examples Skill File","description":"Regex From Examples for Any Script — Writes a JavaScript regular expression from a description plus lists of strings that must match and must not match, answered as JSON with the pattern and flags. Knows the traps measured in Node 24 - \\b and \\w are ASCII-only even with the u flag, so \\bдума\\b never matches Cyrillic text and \\w+ cuts \"café\" to \"caf\"; a word boundary for any script is a pair of lookarounds with \\p{L} and the u flag. Anchors a validator so extra text around the value is rejected,…","url":"https://api.aiskills402.com/v1/skills/regex-from-examples/file?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":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"file":{"name":"SKILL.md","content":"<the SKILL.md file>","encoding":"utf-8"},"name":"Regex From Examples for Any Script","skill":"regex-from-examples","sha256":"<sha256 of SKILL.md>","receipt":{"tx":"0x<settlement transaction>","settled":true},"version":"1.0.0","redownload":{"url":"<api>/v1/purchases/<token>","token":"<64 hex chars>"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_imY2CXbllspDsy7gPhVsp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchases and downloads the 'Regex From Examples' SKILL.md file for AI agents, enabling the agent to generate regular expressions from input/output examples for any script type.","exampleAgentPrompt":"Buy me the regex-from-examples skill from AISkills402 — pay the one-time $0.01 USDC fee on Base and give me the SKILL.md file so I can use it going forward.","exampleUseCases":[{"title":"Equip agent with regex skill","prompt":"Purchase the regex-from-examples SKILL.md from AISkills402 for me — pay the one-time cent fee in USDC on Base and save the file so I can reuse it whenever I need to generate regex patterns from examples."},{"title":"Agent autonomously builds regex patterns","prompt":"I want my coding agent to be able to create regular expressions automatically from input/output examples — go buy the regex-from-examples skill from AISkills402 and load it into memory."},{"title":"One-time skill acquisition for regex tasks","prompt":"Get me the tested SKILL.md for regex generation from AISkills402, pay the $0.01 USDC, and keep the redownload token so we can fetch new versions later without paying again."}],"resultDescription":"Returns a JSON object containing: the full text content of the SKILL.md file (encoded as UTF-8), the skill name ('Regex From Examples for Any Script'), the skill identifier, a SHA256 hash of the file for integrity verification, a payment receipt with the on-chain settlement transaction hash, the version number (e.g. 1.0.0), and a redownload URL and token for future free re-downloads or version updates.","failureModes":["Payment not completed or rejected — returns 402 Payment Required if x402 USDC payment on Base has not been settled","Invalid or missing payment header — agent fails to attach correct x402 payment proof","Network error contacting Base blockchain for settlement verification","Skill file temporarily unavailable — server-side error (500)","Redownload token not saved — agent loses ability to re-fetch without paying again"],"whenToPreferThis":"Choose this endpoint when your AI agent needs to acquire the capability to generate regular expressions from examples and you want a tested, versioned SKILL.md file delivered via a one-time $0.01 USDC micropayment on Base using x402. Prefer this over manually writing regex logic or using a generic code-generation API when you want a reusable, structured skill file your agent can reference repeatedly without recurring costs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T18:59:09.307Z","isFirstParty":false,"canonicalSlug":"aiskills402-regex-from-examples-skill-file-b9eefeb7"}