How to validate a account number using javascript?
<p><code>var expression=/[0-9]{4}\s[0-9]{4}\s[0-9]{2}\s[0-9]{10}/;</code></p>

<p>This is the expression iam using for validating a account number. it is working very well. but i need to validate it by - instead of space. how can i do it?</p>

<pre>eg: XXXX-XXXX-XX-XXXXXXXXXX (4+4+2+10)</pre>

<p>Thanks.</p>
