title: For comma-separated
body: <p>I'm new to RegEx and JavaScript and I was wondering if anyone knew what the RegEx would be for detecting whether or not an input field contained the following type of format:</p>
  
  <ul>
  <li><p>At least one alphanumeric tag which can contain spaces (e.g. "Test Tag" but not "Test@Tag")</p></li>
  <li><p>Each tag separated by a single comma (e.g. "Cars, Vehicle, Large Dog, Bed" but not "Cars, Vehicle, Tiger)</p></li>
  </ul>
  
  <p>An example of what I mean is this, these would be <strong>valid</strong> tags:</p>
  
  <pre><code>boy, man,girl, woman,tyrannosaurus rex, lion
  </code></pre>
  
  <p>And these would be <strong>invalid</strong> tags:</p>
  
  <pre><code>hat, cat, rat, c3po, @gmail
  </code></pre>
  
  <p>Because there are invalid characters in "@gmail". </p>
  
  <p>It should also be able to accept just a single tag, as long as the characters are alphanumeric.</p>