Gotcha. Thanks Chris, I'll take a look at Cal's pattern. =)
BTW, big props for your book. It's been extremely helpful.
-Aaron
On Mar 1, 2007, at 11:25 AM, Chris Shiflett wrote:
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.
_______________________________________________
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