in reply to Split - what am i doing wrong?

"." has a special meaning in a regular expression. You need to indicate that you mean the actual "." character instead. See quotemeta.