Fix regular expression in IE8

IE8 throws some “Expected ']' in regular expression” error with `[^]*`.
Merge pull request #1 from stephenmathieson/add/ie8-support

Fix regular expression in IE8