RegEx String Generator

What is this?

I assume you've used regular expressions before, so, for example, to find "cat" or "dog" or "cats" or "dogs" in a text with the pattern (cat|dog)s? is a common thing for you. Well, what you can do here is the exact opposite. Instead of finding text, you'll create strings by following the conventions and grammar of traditional regular expressions syntax. That said, the aforementioned expression would then generate either "cat" or "dog" or "cats" or "dogs" (try it). Another example would be \w{5} to generate something like "3YWEp" or "sYqkF" ... you got the idea.

Just start by entering some regex pattern in the input field below. Alternatively, you can select some examples from the dropdown to see how the magic works.

For more details on how to use this tool, read the How to use. If you're not familar with RegEx at all, you can check the quick reference.

Type Regex pattern (Press Enter to generate)
Amount of results
Generate strings Generate
Or: try some pre-defined example Regex pattern templates