title: regular expression to extract fraction, decimal and number from a string
body: <p>I need a regex to extract fraction, decimal and integer values from a given string. For example, an input will be like following.</p>
  
  <ul>
  <li>1/2 apples</li>
  <li>1.5 orange</li>
  <li>2.5 orange</li>
  <li>1 lemon</li>
  </ul>
  
  <p>And output should be following.</p>
  
  <ul>
  <li>1/2</li>
  <li>1.5</li>
  <li>2.5</li>
  <li>1</li>
  </ul>
  
  <p>I figured out how to extract fraction, decimal and integer values separately using 3 different regex, but I can't figure out a way to extract all the possible number values with one regex.</p>
  
  <p>I'm currently using Javascript String object's match method.</p>
  
  <p>Any help will be appreciated. </p>