Fixed critical error in IE8

`[^]` in regular expression causes "Expected ']' in regular expression" error at least in IE8 (other versions are untested). Just replaced `[^]` by `[\s\S]`.