in reply to Using a regex to replace looping and splitting
I don't really see any problem with your way. I myself try to avoid using regex too much. (I know split uses regex, but still)