Simplify the `splitPath` regular expression.