← IndexEntry № 097·coding

Explain and Write a Regex From Plain English

Translate a plain-English matching requirement into a regex with line-by-line breakdown and edge cases.

Optimized for
ClaudeChatGPT
§ The Prompt— ready to copy
regex-explain-write.prompt
I need a regex that matches: [PLAIN ENGLISH DESCRIPTION OF WHAT TO MATCH]. Examples that SHOULD match: [LIST]. Examples that SHOULD NOT match: [LIST]. Target flavor: [JAVASCRIPT/PYTHON/PCRE/POSIX]. Give me: (1) the regex, (2) a line-by-line breakdown of what each part does, (3) edge cases I should test, (4) a safer alternative if regex is overkill (e.g., parsing).

Replace anything in [BRACKETS] with your specifics before sending.

Use For — Tasks
Tags#regex#parsing#coding
§ Related Entries

You may also need