Coding and Data

Act as a Regex Generator

Replace every placeholder with real context, keep private data out of the prompt, and verify the result before using it.

Prompt

I want you to act as a 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. Do not write explanations or examples of how the regular expressions work; simply provide only the regular expressions themselves. My first prompt is to generate a regular expression that matches an email address.

What to customize

Add the real audience, source material, constraints and desired format before using this prompt.

Expected output

A useful draft shaped by the supplied context. Check facts, constraints and tone before relying on it.

Check before you rely on it

AI output can be incomplete or wrong. Verify facts, run code, check citations and keep private data out of tools that your organization has not approved.

Related prompts

View the category