I am trying to create a regular _expression_ that will check a form field and determine if it meets a pattern.

 

Here is the RE

([\d]{1,10})+(,\d{1,10})*

 

The form field can contain up to 10 digits….. The comma is a delimiter for each set of 10 digits or less.

 

I am having a problem trying to get the min and max of the regular _expression_ to work.

 

 

 

Examples of valid data in the form field

1234567890

12345,1234567890,45567

 

Throws error if there are more than 10 digits

 

12345678901

12345678901,1234567890

 

 

Any ideas thanks

 

Andrew

 

 

 

 

 

 


NOTICE: This E-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it.

Reply via email to