title: JavaScript regular expression for the validation of comma separated string
body: <p>I want to validate whether the user enter data in this form <strong>B101,202,BBB,B902,Z-102</strong>
  That is each value can be only of alphabets, digits or alphanumeric + '-'
  Tried this expression but it failed for alphabets and digits only condition.
  <strong>^[A-Za-z0-9]+(,[A-Za-z0-9]+)*[A-Za-z0-9]+$</strong></p>