simplify regexp's