title: Regex somestring.trim().split(/\s*,\s*/);
body: <p>What would be the effect of the following line</p>
  
  <p><code> somestring.trim().split(/\s*,\s*/);</code></p>
  
  <p>in javascript??</p>
  
  <p>I thought it would split at comas with any number of spaces before or after.</p>
  
  <p>But from what i have learned the regex would be like</p>
  
  <pre><code>\\s*,\\s*
  </code></pre>
  
  <p>.I am confused</p>