Page 1 of 1

Invalid E-mail Characters

Posted: Fri Nov 07, 2003 10:23 am
by php_wiz_kid
Can someone give me a list of the characters that are not permitted in e-mail addresses? This will be for e-mail validation. Thanks.

Posted: Fri Nov 07, 2003 11:06 am
by scorphus
I was just SingTFW for Regular Expression stuff and found this: http://examples.oreilly.com/regex/. It might be helpful. Sorry if it's not.

Cheers
Scorphus.

Posted: Fri Nov 07, 2003 12:40 pm
by mrvanjohnson
Here's the RegEx I ended up using on my form validation for emails

Code: Select all

'/^(їa-zA-Z0-9])+(ї\.a-zA-Z0-9_-])*@(їa-zA-Z0-9_-])+(\.їa-zA-Z0-9_-]+)+/'
Seems to work.