Talk:PHP Code Snippets
From DreamHost
Scjessey: I've been using this regular expression for validating email. It seems a little more robust, but perhaps others think differently:
^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$

