Fix regular expression in IE8

IE8 throws some “Expected ']' in regular expression” error with `[^]*`.