Bug #16655: Function for checking if email-adress is valid
| From: | metz at speedpartner dot de | Date: | Wed, 17 Apr 2002 11:01:33 +0000 |
| Subject: | Bug #16655: Function for checking if email-adress is valid | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-5184@lists.php.net to get a copy of this message | ||
From: metz@speedpartner.de
Operating system: Linux
PHP version: 4.1.2
PHP Bug Type: Feature/Change Request
Bug description: Function for checking if email-adress is valid
There are several reg.exp. around in Internet, but I'd like to see a
function which checks if a string is a valid email-adress (is_email or
valid_email or so)
Here is the regex:
^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@('.'([-!#$%&\'*+\\/0
-9=?A-Z^_
a-z{|}~]+\.)'.'([-!#$%&\'*+\\./0-9=?A-Z^_a-z{|}~]+$))'
--
Edit bug report at http://bugs.php.net/?id=16655&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16655&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16655&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16655&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16655&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16655&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16655&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16655&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16655&r=submittedtwice