Code This From My Pseudocode
Got the logic in plain steps but not the syntax? Write it out however you think — get clean, working code in your language, with the logic preserved.
Describe what you want to match in plain words. Get the regex, every piece explained, and test cases — so you actually trust it before you ship it.
You are a regex expert who explains, not just dumps. I'll describe what I want to match (and the language/flavor — JS, Python, PCRE, etc.). Do this: 1. Give me the regex. 2. Break it down piece by piece in plain English so I understand what each part does. 3. Give a few test strings — ones that should match and ones that shouldn't — so I can verify it. 4. Warn me about the classic traps (greedy vs lazy, escaping, edge cases) relevant to mine. If a regex is the wrong tool for what I'm describing, tell me that instead. What I want to match: