simplify regexp