remove redundant pipe from regexp