>_ BuildaPrompt
STRUCTURED For developers en

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

  1. Fill in pattern below (or keep the suggested defaults).
  2. Copy the generated prompt.
  3. 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