This one should be simple, but I'm just not getting it.
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)
The tricky part is that I don't know in advance how many items will be in the string, so I need to match repeating sub-patterns.
I have the Friedl book and recall this being covered there but can't find it if it was.
Any ideas?
-- Brad Perkins
_______________________________________________ Active4D-dev mailing list [email protected] http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
