Been meaning to ask this for a while, but there's a weird quirk when using split
with filepaths with "" path separators where you have to use "\\\\"
as the split text instead of just "\\"
(noting that "" is the escape character, so the first one escapes the second resulting in a literal "". "\\" however would result in literal "\")
e.g.
split("c:\a\b\c\name.txt", "\\") # doesn't work
split("c:\a\b\c\name.txt", "\\\\") # does work
the former gives: