note 15722 deleted from function.ereg-replace by jimw

From: Date: Fri, 02 Nov 2001 01:59:44 +0000
Subject: note 15722 deleted from function.ereg-replace by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20220@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.

« previous php.notes (#20220) next »