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.
In reply to Re: regex or split
by steves
in thread regex or split
by mce
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |