Javascript match error - Invalid quantifier
<p>i get an strange error "invalid quantifer" ... can somebody help me please?</p>

<p><strong>html</strong></p>

<pre><code>&lt;input type="text" value="5+5" id="test"/&gt;
</code></pre>

<p><strong>JS</strong></p>

<pre><code>  ups = {};
  ups['2'] = new Array();
  ups['2']['cmd'] = '#(\-|\+|\*|\/|)[0-9](,|[0-9]|)(\-|\+|\*|\/)[0-9]#gi';     

  var inp_val = $('#test').val();
  if (inp_val.match(ups['2']['cmd']))
  {
     $('body').append('&lt;br /&gt;OK');                 
  }
</code></pre>

<p><a href="http://www.jsfiddle.net/V9Euk/639/" rel="nofollow">http://www.jsfiddle.net/V9Euk/639/</a></p>
