RegexBuddy is a great tool. What I would like is a tool that optimizes regular expressions; takes several expressions and reduces them to a smaller number. Any recommendations?
There is no magic pill for regular expressions. Simple alternative redundancy may be able to alternate some changes, but more on that.
In general, there is no guarantee of an increase in speed or even the need for one.
- . . . .
perl, Regexp:: Optimizer Regexp:: .
-, , .
, , , .
. , , - . RegexBuddy - , , , .
Try Debuggex for Javascript, Python, and PCRE regex engines. This shows a schematic flow. We can optimize further based on this.
Then we have the Regex101 debugger , which allows us to reproduce the correspondence of regular expressions step by step.