Regular expression optimisation tool?
regex
Solution
There is no magic pill for regular expressions. Simple alternation redundency may be able to have some alternations factored out, but thats about it.
Overall, there is no guarantee of a speed increase, or even a need for one.
The best optimization is experience in writing regex. A badly written regex will always stay bad. A well written and tested one would not want to take the chance of a programatic optimization. This is especially true when using modern extended regular expressions.
Problem
RegexBuddy is a great tool. What I'd like though is a tool that optimises regular expressions; takes a handful of expressions and boils them down to a smaller number. Any recommendations?