I had been developing some client-side validation code in jQuery / JavaScript and using Firefox (and the excellent Firebug ) to test and debug it. I was then asked to ensure that it worked in IE6 & IE7 and that's when the problems started. Apart from the usual "which file does that line number equate to, and why does it not tie up?" issues I found that IE doesn't like taking a regular expression as it's parameter to the JavaScript split function . Firefox will happily accept this and works fine but IE doesn't. After some searching it appears that Firefox might be the odd one out and that it's non-standard to pass in a regex. So what do you do if you want to split up a string based on a regular expression or rather a rule that can't be simply expressed in the way that the split function wants it? Wouldn't it be nice if you could ask if a string matches a regex but then use certain matched bits of the string in your next few lines of c
eng mgr / leader / full stack / java / agile / tdd / security / aws / go