Does anyone know of any good library that abstracts the problem of path manipulation in a nice way? I\'d like to be able to combine and parse paths with arbitrary separators
You're describing regular expressions! Use that as the underpinning for what you need to do.