# regex generator

> Generate regular expressions according to requirements.

| Field | Value |
| --- | --- |
| Content type | [Code](https://dopamine-prompt.com/en/type/code) |
| Models | [GPT](https://dopamine-prompt.com/en/model/gpt) |
| Industries | [Software Development](https://dopamine-prompt.com/en/industry/software-dev) |
| License | [MIT](https://opensource.org/license/mit) (Copyright (c) 2023 rockbenben) |
| Source | Submitted by [半盏清茶](https://dopamine-prompt.com/en/u/ec9f4d42-7198-4f94-8c74-f4cf0a98fe4d) |
| Last updated | 2026-11-26 |

## 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
```

Web page: <https://dopamine-prompt.com/en/prompts/regex-generator>
