Wouldn't you know it - after finally figuring out how to use re.match to deal with this I realized that it wasn't going to work. I've simplified it to a simple re.sub of "," to "\" for every occurrence. If I left some it would just end up creating a mess - better to warn people not to use commas in the prefix, but they'll still work ok.
|