Fix regular expression in IE8

IE8 throws some “Expected ']' in regular expression” error with `[^]*`.

Not sure that this will now work 100% in IE8, but at least it won't throw a stupid error...