The String.split methods can be very convenient for easily splitting a provided String based on a provided regular expression String. The only trick is figuring out a regular expression token to use ...
The string can be quite large as in sometime 500K to a million characters, though usually it is smaller. I know preg_replace doesn't work well in those situations with such large strings, so adding a ...