Re: Regular Expressions
| From: | Miguel Cruz | Date: | Thu, 25 Apr 2002 00:07:29 +0000 |
| Subject: | Re: Regular Expressions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94474@lists.php.net to get a copy of this message | ||
On Wed, 24 Apr 2002, Evan Nemerson wrote:
> ereg("([_a-zA-Z\-]+|\*)\@[\.a-zA-Z\-]+\.com",$variable);
> should work, but test it. I'm not 100% the wildcard part will work.
An internet domain name cannot contain an underscore ( _ ).
...and a whole lot of them don't end in .com!
miguel