Regex Generator

Creating regular expressions is easy again!

1

Paste a text sample.
Give us an example of the text you want to match using your regex. We will provide you with some ideas how to build a regular expression.

2

Which parts of the text are interesting for you?
This is just an #example text with "some strings".
asddsfsdfsdfsdfsdf
Click on the marked suggestions to select them for your regular expression.

3

Regular expression
This is the generated regular expression.
When checked then generated regular expression will only contain the patterns you chose in step 2. Otherwise all the characters between the patterns will be copied.
Do you want the generated regular expression to match the whole input?

4

Usage in programming languages
By default, all major regex engines match in case-sensitive mode. If you want patterns such as Name: [a-z]+ to match in case-insensitive fashion, we need to turn that feature on. *
By default, the dot . doesn't match line break characters such as line feeds and carriage returns. If you want patterns such as BEGIN .*? END to match across lines, we need to turn that feature on. *
By default, most major engines (except Ruby), the anchors ^ and $ only match (respectively) at the beginning and the end of the string. In other engines, if you want patterns such as ^Define and >>>$ to match (respectively) at the beginning and the end of each line, we need to turn that feature on. *