This looks like a significant change of semantics: you're splitting on only the one character split[0], where RlistFromSplitRegex() treated split as a regex on which to split.  So split = "," shall work as before, but split = "\\s*,\\s*" shall not.