Simplify the `splitPath` regular expression

I have only removed unnecessary non-capturing groups. The final expression is more readable and therefore maintanable :-).