in reply to i must have forgotten how split works...
You have. The first arg of split is a regexp, and dot is a regexp metacharacteer.