in reply to splitting a string on pre-defined tags

General rule of thumb:

If you know what you don't want, use split.

If you know what you want, use regex.

  • Comment on Re: splitting a string on pre-defined tags