title: Regular expression for comma separated, range
body: <p>I need to create a regular expression for comma separated numbers (maximum 3 digits) and/or ranges separated by dash. The following strings are valid</p>
  
  <p>12<br>
  12,13,14,15<br>
  12,13-15,16,100-101,120<br>
  12-13,15-20,100-200  </p>
  
  <p>Note that the numbers cannot be greater than 3 digits.</p>
  
  <p>I need a to validate the string in Java. Any one can please suggest a matching regular expression for these?</p>