Regex to determine currency format in jquery
<p>I want to write a jquery regex expression to determine if a string is in either of these formats <code>x,xxx.xx</code>, <code>x,xxx,xxx.xx</code> and <code>x,xxx,xxx,xxx.xx</code>.</p>

<p>Can anyone help? Your help is greatly appreciated.</p>