remove redundant regex