There are regular expression testers available online, but there are probably no tools to generate. Usually, when you create some code using the gui tool, you get much more redundant and inefficient code than human-created code. This is generally true: the gui toolkit tool for scripting languages, excel-to-latex table conversion, ... and probably for most other things, and it will probably be true for regular expressions.
However, there are ways to reduce awkwardness in regular expressions. For example, in Ruby, you can define a regex as parts that you will reuse, for example. /small_regex/ and refer to them in large regular expressions, for example, /foo#{small_regex}bar/ , Regexp.union(small_regex1, small_regex2) , etc.
source share