At least one difference between IE below # 9 and most other browsers when splitting strings is
var s = 'In some browsers, you can βsplitβ a string on a parameterized delimiter and return the βsplitβ bits in an array.';
s.split(/( ?['"] ?)/).join('\n') /***************************************************/ Firefox 4.0.1>> In some browsers, you can " split " a string on a parenthized delimeter and return the " split-off " bits in the array. /***************************************************/ MSIE 8.0>> In some browsers, you can split a string on a parenthized delimeter and return the split-off bits in the array. /***************************************************/ MSIE 9.0>> In some browsers, you can " split " a string on a parenthized delimeter and return the " split-off " bits in the array.
kennebec Jun 21 '11 at 12:45 2011-06-21 12:45
source share