Pattern for signed number
<p>this is the pattern that I created to accept decimal numbers with 5 integer and 2 decimal numbers.</p>

<pre><code>String pattern = "[0-9]{0,5}+([" + ds + "]{1}||[" + ds + "]{1}[0-9]{1,2})?";
</code></pre>

<p><code>ds</code> is the decimal format symbol.</p>

<p>How can I modify it to accept negative numbers?</p>

<p>Thanks.</p>
