Re: Easy reg expression problem
| From: | Jason Wong | Date: | Sat, 17 Jul 2004 02:05:28 +0000 |
| Subject: | Re: Easy reg expression problem | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-35331@lists.php.net to get a copy of this message | ||
On Friday 16 July 2004 16:01, Tim Van Wassenhove wrote:
> In article <200407160818.38087.php-db@gremlins.biz>, Jason Wong wrote:
> > On Friday 16 July 2004 08:05, Justin Patrin wrote:
> >> > If you're simply trying to get '@email.com' then use strstr().
> >>
> >> Of course....I'm just so used to pregs...
> >
> > Well the advantage of using a regex is that you can perform some form of
> > validation on the address.
>
> And in the end compare your regular expression with the one at:
> http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html
That's why I qualified my statement by saying "some form of". Anyway, in
general using a regex as opposed to a straight string function will allow
some form of data validation.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-db
------------------------------------------
/*
What we Are is God's gift to us.
What we Become is our gift to God.
*/