Apr 25th, 2010, 9:11 AM
Sorry Bert!! I finally gave up and tried it out myself locally.
THIS one works:
Now both commas are escaped (can't believe I missed that...!) and the extra "i," bit is removed. I'm not sure why that was there.
Anyway, this looks like it works the way you want.
- Ben
THIS one works:
Code:
rules.push("reg_exp,aantal_groen,^\s*[0-9\\,]{1\\,4}\s*$,alleen cijfers en komma!");
Now both commas are escaped (can't believe I missed that...!) and the extra "i," bit is removed. I'm not sure why that was there.
Anyway, this looks like it works the way you want.
- Ben