Hi,
i get an strange error "invalid quantifer" ... can somebody help me please?
html
<input type="text" value="5+5" id="test"/>
JS
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('<br />OK');
}
http://www.jsfiddle.net/V9Euk/639/
Thanks in advance!
Peter