Syntax checking a comma-seperated list

Associate
Joined
23 Nov 2007
Posts
106
Hey guys,

I have a list of acceptable files in my web app.

doc, docm, rtf, xls, xlsx, csv, txt, pdf, zip, rar, xml

If the user changes this I want to check the syntax is correct. Was thinking of using regular expressions. I am using ASP and JS.

Cheers for any input,
Daveyboy
 
Back
Top Bottom