Simplify regexp