splitTo($S, 'foo/gnu', 'gnat'); splitTo($S, 'foo/bar/baz', '\\o/'); splitTo($S, 'foo/bar', 'oops');