Reduced regular expressions and improved speed