How to interpret this regular expression /[\W_]/g
<p>My code is:</p>

<pre><code>var result2 = result.replace(/[\W_]/g,"").replace(",","").replace(".","");
</code></pre>

<p>The code works i get what i need done, but I don't understand how the regular expression <code>/[\W_]/g</code> works, and I can't find any documentation that i understand. </p>