Simplify path regex