Hi Aaron, > I use the regexp from Chris's Essential PHP Security book: > http://phpsecurity.org/
Cool. :-) I actually prefer Cal Henderson's pattern, because he meticulously crafted it from the RFC, and it's still reasonably short. The one in my book works well, but it's slightly more lenient than necessary. If/when I write a second edition, I'll likely point readers to Cal's pattern or perform the same exercise. Chris -- Chris Shiflett http://shiflett.org/ _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php