in reply to regex or split
Not so far fetched I think. I had a piece of code that was heavily used that was splitting on delimiters, very similar to what you show. I profiled the code with split and with the regexp and the regexp easily won.