Jan 14th, 2014, 5:05 PM
Instead of writing a new rule in the rsv I utilized reg_exp
rules.push("reg_exp,Sec1_Color_Pages_List,^[0-9]+(?:\\,[0-9]+)*$,Color Page list must have format of number comma number in Section 1")
The reg_exp of ^[0-9]+(?:\\,[0-9]+)*$
did the trick.
valid strings:
1
1,2,3
10,20
Invalid: 1,
or any "non number and comma" combination must end with number not comma
rules.push("reg_exp,Sec1_Color_Pages_List,^[0-9]+(?:\\,[0-9]+)*$,Color Page list must have format of number comma number in Section 1")
The reg_exp of ^[0-9]+(?:\\,[0-9]+)*$
did the trick.
valid strings:
1
1,2,3
10,20
Invalid: 1,
or any "non number and comma" combination must end with number not comma