Premium Content
Regex Builder & Explainer — Verified Patterns, Plain-English Readings
This prompt — Regex Builder & Explainer — Verified Patterns, Plain-English Readings is premium. Purchase once to unlock the full prompt forever.
Describe a text pattern in plain words and get a working regular expression — tested, not guessed. Or paste any regex and get a plain-English reading of what it matches, what it misses, and which classic trap it contains. What you get: - A complete skill that builds a regex from your words. It asks for 3 strings that must match and 3 that must not, then builds the pattern one piece at a time: literals, character classes, quantifiers, anchors, groups. - A pattern library of 8 ready patterns, each with its match and reject examples: email, DD/MM/YYYY date, ISO date, URL, slug, invoice number INV-YYYY-NNNN, amounts with commas, and timestamped log lines. - Explainer mode: paste any regex and get a one-line summary, a piece-by-piece reading, two examples of what it matches, two examples of what it misses and why, and a check against the 5 classic traps (greedy .*, unescaped ., missing anchors, catastrophic backtracking, locale-dependent \w). - A runnable test script (regextest.py, Python standard library only). No pattern is delivered without a clean test run — the script prints PASS/FAIL per case and exits 0 only when every case passes. Real demo output (from the skill's own worked example): Input: "an order number like ORD-2026-1187, always ORD, then the year, then 4 digits." Pattern delivered: ^ORD-(19|20)\d{2}-\d{4}$ Test run: PASS must match : 'ORD-2026-1187' PASS must match : 'ORD-1999-0001' PASS must NOT match: 'ORD-26-1187' PASS must NOT match: 'ord-2026-1187' PASS must NOT match: 'ORD-2026-187' 5 passed, 0 failed Honest limits: the skill builds and explains patterns; it does not parse nested structures. The library email pattern is practical, not RFC 5322 complete. Date patterns check ranges, not the real calendar (30 February passes). If your engine lacks a feature (for example lookarounds in Google Sheets), the skill says so and gives the closest pattern that engine supports. One-time purchase, yours permanently. Lifetime access, no recurring fees.
What you get