Opens in a new tab

DGTULS PROMPT LIBRARY

Build and explain a regular expression

Write a regular expression for {{regex_flavor}} that matches: {{what_to_match}}
It must NOT match: {{what_not_to_match}}

Give me:
1. The regex
2. A piece-by-piece explanation
3. A table of 6 test strings with expected match yes/no
4. Known limitations

Essential cookies keep DGTULS working and are always on. Optional cookies help us measure traffic and show ads. Accept, reject or choose which ones to allow. Learn more in our Cookie Policy, Privacy Policy and Terms of Use.