Remove duplicated regex parts