Generate regular expressions from sample texts.
50K+
Regex Generator is a tool to generate simple regular expressions. The goal is that people with less experience can create regex smoothly.
Regex Generator tries to help you create a first version of a regular expression to recognize certain texts. It is designed to create regular expressions by putting together well-known snippets. This can be used as a starting point for regular expressions.
Hopefully nobody will need to use substring() anymore.
As written in the introduction the aim of the project is to enable everybody to use regular expressions. The use of substring() is nearly always unnecessary and if code is written in a reasonable manner you barely need that method.
There are a lot of very nice tools to build, understand and even debug your regex. Regex Generator tries to add a little bit to these tools to give you at least a starting point how the regex you need might look like.
Hopefully this regex generator continues to grow to eventually support a really wide range of functions and regular expressions.
Regex Generator is currently able to generate code snippets in the following languages:
regex.h)If you miss a language, just open a new issue or if you like, program the corresponding generator and open a pull request.
Currently, about 30 patterns of different complexity are integrated in Regex Generator. It is able to recognize simple repetitions and combinations of multiple patterns.
To know more about the patterns, it's probably best to have a look into the code.
The list of included patterns is certainly not exhaustive. Nevertheless, it should cover a good number of use cases for beginners to start their regex with. Suggestions for additional patterns are very welcome and will be gladly included in the list. This is easily done via the issues.
MatchPresenters. These contain the information, how matches can be grouped (for the UI) and which match can be selected at which position. So, these MatchPresenters are the a first connection to what is displayed for the user - and is based on the simple list of the previous model.More ideas for new features or how to improve the application are very welcome. Please add them to the Github issues.
Content type
Image
Digest
sha256:02eb1750f…
Size
6.4 MB
Last updated
13 days ago
docker pull noxone/regexgenerator