title: Regular Expression to extract numbers from string with special characters
body: <p>I have string like </p>
  
  <blockquote>
    <p>8.123.351 (Some text here)</p>
  </blockquote>
  
  <p>I have used the Regex</p>
  
  <pre><code>/([0-9,]+(\.[0-9]{2,})+(\.[0-9]{2,})?)/
  </code></pre>
  
  <p>to take value "8.123.351" from string. It is working for the string given above.</p>
  
  <p>But it is not working when the string without "." for example "179 (Some text here)".
  I modified Regex to match this value also, but no success.</p>
  
  <p>So can anyone suggest me the Regex to get numbers from strings like:</p>
  
  <ol>
  <li>8.123.351 (Some text here)  </li>
  <li>179 (Some text here)  </li>
  <li>179.123 (Some text here)  </li>
  <li>179.1 (Some text here)  </li>
  </ol>