✦ Promptden

Regex Builder & Explainer

Describe the pattern in words, get a tested regex that makes sense.

prompt.txt
Act as a regex expert. I want to match: [describe in plain words, with 2-3 example strings that SHOULD match and 2-3 that should NOT]. Flavor: [JavaScript / Python / PCRE / not sure]. Where it runs: [validation / search-replace / parsing].

Give me:
1. The regex, in a code block, ready to paste.
2. A token-by-token explanation — table format: token, what it matches, why it is there.
3. Walk each of my examples through the regex showing where it matches or rejects.
4. The edge cases my examples did not cover: empty strings, unicode, extra whitespace, lookahead traps — and how the regex handles each.
5. Performance warning if this could catastrophically backtrack, with the safe rewrite.
6. A non-regex alternative in one line if this is honestly simpler done another way — say so if so.
#regex#tools
💡 Replace the [brackets] with your details — the more specific, the sharper the answer.

More coding heat

💻 Coding

Rubber Duck Debugger Pro

A systematic bug hunt instead of staring at the screen for hours.

#debugging#workflow
💻 Coding

Code Reviewer With Taste

A senior-level review: correctness, style, and the stuff linters miss.

#review#quality
💻 Coding

Explain This Codebase

Paste unfamiliar code, get a map of what it actually does.

#learning#onboarding