Re: Re: Regular Expression help
| From: | Brad Hubbard | Date: | Sat, 30 Jun 2001 07:39:45 +0000 |
| Subject: | Re: Re: Regular Expression help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-55682@lists.php.net to get a copy of this message | ||
On Fri, 29 Jun 2001 23:43, Clayton Dukes wrote:
> Okay, here's what I have so far:
>
> ---snip---
> if ((!$email)
>
> || ($email=="")
> || (!eregi("^[_\.0-9a-z-]+@domain.+[a-z]",$email))
>
> )
> $stop = "<center>"._ERRORINVEMAIL."</center><br>";
> ---snip---
>
> This works, but how can I add a second domain?
How 'bout;
---snip---
if ((!$email)
|| ($email=="")
|| (!eregi("^[_\.0-9a-z-]+@domain|otherdomain.+[a-z]",$email)
)
$stop = "<center>"._ERRORINVEMAIL."</center><br>";
---snip---
Cheers,
Brad
--
Brad Hubbard
Congo Systems
12 Northgate Drive,
Thomastown, Victoria, Australia 3074
Email: brad@congosystems.com
Ph: +61-3-94645981
Fax: +61-3-94645982
Mob: +61-419107559