Regex to validate number between two ranges
<p>how to validate numbers between 0 to 99999.99 using regex?</p>

<p>basically it should accept the values like <code>0.01, 0000.01, .01 and 9999.99</code></p>

<p>also it should have only <code>two values after dot(.)</code></p>

<p>I tried something like the below but it did not work for me.</p>

<pre><code>/^[0-9]{1,5}.[0-9]{2}$/ 

decimal is optional
</code></pre>

<p>Could someone help pls.</p>