Remove redundant regular expressions