(Apr 18th, 2010, 10:47 AM)Ben Wrote: Hi Bert,
Try double-escaping the commas.
Code:rules.push("reg_exp,aantal_groen,^\s*(0|1|2|3|4|5|6|8|9|\\,\)\s*$,i,alleen cijfers en komma!");
I think that should fix it...
- Ben
Hi Ben!
Of course I immediately tried your solution....it fixed the error but didn't help ...when i put in a sequence of numbers and comma's it still gives the error
(Apr 18th, 2010, 12:58 PM)bvdveen Wrote: [quote='Ben' pid='2609' dateline='1271616476']
Hi Bert,
Try double-escaping the commas.
Code:rules.push("reg_exp,aantal_groen,^\s*(0|1|2|3|4|5|6|8|9|\\,\)\s*$,i,alleen cijfers en komma!");
I think that should fix it...
- Ben
Hi Ben!
Of course I immediately tried your solution....it fixed the error but didn't help ...when i put in a sequence of numbers and comma's it still gives the error.
I want users to be able ti fill in any number with up to 4 digits or 3 digits with a comma as decinal separation.
would the following work?
rules.push("reg_exp,aantal_groen,^\s*(0|0\\,\25|0\\,\50\0\\,75|......)\s*$,i,alleen cijfers en komma!");