note 15722 added to function.ereg-replace

From: Date: Thu, 27 Sep 2001 22:06:13 +0000
Subject: note 15722 added to function.ereg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-18391@lists.php.net to get a copy of this message
Since my previous post, I have developed a new and better regexp for locating email addresses in text: [A-Za-z0-9_]([-._]?[A-Za-z0-9])*@[A-Za-z0-9]([-.]?[A-Za-z0-9])*\.[A-Za-z]+ This regexp requires email addresses to start with an alphanumeric character or an underscore, and then allows any number of dots or underscores in the account name, but does not allow those dots or underscores to be adjacent to each other. Same goes for the domain name part, except it does not permit underscore characters. -- http://www.php.net/manual/en/function.ereg-replace.php http://master.php.net/manage/user-notes.php?action=edit+15722 http://master.php.net/manage/user-notes.php?action=delete+15722 http://master.php.net/manage/user-notes.php?action=reject+15722

« previous php.notes (#18391) next »