Hi All ,

Can some help me in getting in setting up validation for data in the
following format
2, 4, 5-9, 18, 21-25, 50
or 2, 90, 300
or 67-90, 101-210

for a textfield in html form

I have tried setting up a Regular expression to check for
/\s*(\d*-\d*,|\d*,)\s*/ occurrences but i cannot get on from here
I have tried doing it in a JavaScript as well as setting it up in a
validate method for my form , ( USING STRUTS )

thanks in advance

regards


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to