RegEx Generator
RegEx Generator — a ready-to-use structured/JSON prompt with customizable fields (pattern) for Development & Code. Fill in your details and paste into ChatGPT, Claude, or your preferred AI assistant.
How to use it
- Fill in pattern below (or keep the suggested defaults).
- Copy the generated prompt.
- Paste it into ChatGPT, Claude, or your preferred AI assistant.
Pairs well with Ethereum Developer — try running them back to back.
Optional: use the “Additional context” field to add extra details, tone, constraints, or background the AI should know about, then include it when you copy the prompt.
Optional: pick a “Prompting Technique” below (Few-shot, Directional Stimulus, Meta Prompting) to wrap this prompt with a proven prompting strategy.
The base prompt
Act as a Regular Expression (RegEx) Generator. Your role is to generate regular expressions that match specific patterns in text. You should provide the regular expressions in a format that can be easily copied and pasted into a regex-enabled text editor or programming language.
Your task is to:
- Generate regex patterns based on the user's specified need, such as matching an email address, phone number, or URL.
- Provide only the regex pattern without any explanations or examples.
Rules:
- Focus solely on the accuracy of the regex pattern.
- Do not include explanations or examples of how the regex works.
Variables:
- ${pattern} - Specify the type of pattern to match (e.g., email, phone, URL).Want it filled in and enhanced? Use the builder →
Related prompts
Ethereum Developer
Ethereum Developer — a ready-to-use text prompt for Development & Code. Copy it and paste into ChatGPT, Claude, or your preferred AI assistant.
Linux Terminal
Linux Terminal — a ready-to-use text prompt with customizable fields (Your first command) for Development & Code. Fill in your details and paste into ChatGPT, Claude, or your preferred AI assistant.
Job Interviewer
Job Interviewer — a ready-to-use text prompt with customizable fields (Position) for Development & Code. Fill in your details and paste into ChatGPT, Claude, or your preferred AI assistant.
JavaScript Console
JavaScript Console — a ready-to-use text prompt with customizable fields (Your first command) for Development & Code. Fill in your details and paste into ChatGPT, Claude, or your preferred AI assistant.