title: Regex for Matching Input like "abc > 10, cba < 100, ..." for Pattern in HTML Input
body: <p>I have an Input field in an HTML Document. It should not accept any input except input in this format <strong>abc > 10, a1 &lt; 100, a2 >= 20,</strong> .. and so on.</p>
  
  <p>I have tried various ways. Closest pattern that I could come up with is this <strong>([A-Za-z0-9]+\s[&lt;>=!==]{1,2}\s[A-Za-z0-9]+[, ]{0,1})+</strong> . However, with this pattern the input field can also accept input of format abc > 10a1 &lt; 10 without ','  or abc > 10,a1 &lt; 100 without single space after comma.</p>
  
  <p>How can I write a regex that will ensure that between two or more statments like abc > 10, a1 &lt; 100, c1 >= 20 there is always a comma and single space charater separating these statements and if there is only one statement then there is no comma required at the end?</p>
  
  <p>Thanks</p>