← Back to Prompt Library
Code

Regex Generator

Build a regex pattern from plain English.

Write a regex pattern that matches [DESCRIBE WHAT YOU WANT TO MATCH]. Language: [JavaScript/Python/etc]. Provide: (1) The regex pattern, (2) An explanation of each part, (3) 3 examples of strings that MATCH, (4) 3 examples of strings that DON'T match. If there are common edge cases, mention them.
regexpatternvalidation

Want to use this with one click inside ChatGPT?

Get TresPrompt →