On 9.2.2005 19:57, "Brad Perkins" <[EMAIL PROTECTED]> wrote: > I need to create a pattern that match will match a comma delimited string, > with no spaces around the commas. Trailing commas aren't allowed either. > This will be used in a form data validation method. > > For example, I'd be looking at strings like the following: > > 1,2,3,4 is a match > 1, 2, 3 , 4 isn't a match > 1,2,3,4, isn't (trailing comma)
Maybe this could help: 1. Repeat deleting until first char of string is not comma 2. Repeat deleting until last char of string is not comma 3. Repeat deleting until string does not contain comma and space 4. Repeat deleting until string does not contain space and comma 5. Repeat deleting until string does not contain comma and comma Miro _______________________________________________ Active4D-dev mailing list [email protected] http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
