title: Regular expression for a sequence of hyphenated key-value pairs
body: <p>i need to validate a text box for this format of data input - </p>
  
  <p>"TeSt12-12TeSt,12Test-Ab12,...."</p>
  
  <p>which basically is a series of key-value (key hyphen value) split using a comma (,)</p>
  
  <p>Readlike</p>
  
  <p>anyAlphaNumeric followed by hyphen anyAlphaNumeric then "optional from here" comma and anyAlphaNumeric followed by hyphen anyAlphaNumeric then comma and anyAlphaNumeric followed by hyphen anyAlphaNumeric...</p>
  
  <p>Here 1s can be A-Z, a-z, 0-9
  Examples - 
  11-11 is valid
  111-111, is invalid (comma should be followed by another key-value set)
  1-1,1-1 is valid
  1- is invalid (value is missing after hyphen)
  1-1,111-111,11-11111,111-111111 is valid</p>