Javascript Regex to select every non-alphanumeric character AND whitespace?
<p>I'm new to JS, tried using -</p>

<pre><code>/[0-9a-z]+$/gi
/[^0-9a-z]+$/gi
</code></pre>

<p>neither worked. Can anyone tell me where I am going wrong?</p>
