Analysis tool implemented to properly and quickly simplify regular expressions