Re: [PHP] How to ge the ones which are not

2005-03-11 Thread Richard Lynch
> On Fri, 2005-03-11 at 13:12, Richard Lynch wrote: >> > I've built this little regular expression to test wether an e-mail >> > address is valid or not: >> > >> > if(eregi >> > ("[EMAIL PROTECTED]", >> > $email)) I can also say that the backslashes in here are maybe not doing what you think... M

Re: [PHP] How to ge the ones which are not

2005-03-11 Thread Robert Cummings
On Fri, 2005-03-11 at 13:12, Richard Lynch wrote: > > I've built this little regular expression to test wether an e-mail > > address is valid or not: > > > > if(eregi > > ("[EMAIL PROTECTED]", > > $email)) > > First, you should be aware that your RegEx is wrong. > > I know it's wrong, because the

Re: [PHP] How to ge the ones which are not

2005-03-11 Thread Jochem Maas
Richard Lynch wrote: ... First, you should be aware that your RegEx is wrong. I know it's wrong, because the CORRECT Regex is 3 *PAGES* long in the camel book. 3 pages? does any one use it? is it even feasible to use it? That said, maybe this will catch *some* invalid email addresses, and not raise

RE: [PHP] How to ge the ones which are not

2005-03-11 Thread Chris W. Parker
Richard Lynch on Friday, March 11, 2005 10:12 AM said: >> I've built this little regular expression to test wether an e-mail >> address is valid or not: >> >> if(eregi >> ("[EMAIL PROTECTED]", >> $email)) > > First, you should be aware that your RegEx is wrong. >

Re: [PHP] How to ge the ones which are not

2005-03-11 Thread Richard Lynch
> I've built this little regular expression to test wether an e-mail > address is valid or not: > > if(eregi > ("[EMAIL PROTECTED]", > $email)) First, you should be aware that your RegEx is wrong. I know it's wrong, because the CORRECT Regex is 3 *PAGES* long in the camel book. That said, maybe

[PHP] How to ge the ones which are not

2005-03-11 Thread Mário Gamito
Hi, I've built this little regular expression to test wether an e-mail address is valid or not: if(eregi ("[EMAIL PROTECTED]", $email)) print ('valid email) else print ('Invalid email'); -- ok, now i want to use this in a filling form web page scenario. I have this forms with its fields to