I've spent most of my career writing applications for consumption within small to medium sized organizations. In those roles, I'd relied on regular expressions to validate the user's input (e.g. email, zipcode, phone # or to find and remove unwanted markup) and the AntiXSS library to protected against cross site scripting attacks.
After reading (ok, trolling) through the posts here, and after reading them I'm wondering that if what I am currently doing is enough, especially as more of my projects are becoming more outward facing.
My question is this: Is there are good tutorial with examples on best practices to sanitize user input? I found this article and this which deals with the XSS library and this thread on RefactorMyCode - I don't want to rely on just one facet to protect the site.
Any help/advice would be useful.
Thanks!