String.split in IE
<p>If I try this code in firefox it works fine</p>

<pre><code> var words = String.split(new RegExp(/[\-\s]/));
 words // ["/[\-\s]/"]
</code></pre>

<p>The same code in IE not!</p>

<pre><code> var words = String.split(new RegExp(/[\-\s]/));
 words "Object doesn't support property or method 'split'"
</code></pre>

<p>Why? and what is the best way to fix it in IE?</p>
