Re: [PHP] reg expression for ide-emails

2004-03-29 Thread John W. Holmes
From: "csko" <[EMAIL PROTECTED]> > Why? Becasuse some people entered [EMAIL PROTECTED] as email :) So. If you require a verified email, they obviously won't be able to verify it. You'll waste some resources sending the mail, but does that really matter? I guess if you blindly send out messages t

Re: [PHP] reg expression for ide-emails

2004-03-29 Thread csko
> If you're going to validate a [EMAIL PROTECTED] address, why even > bother? Seriously. There are a 1000 different regular expressions for email > addresses out there and each of them have flaws to some extent. > > If your application is so important that it requires a valid email address, > you

Re: [PHP] reg expression for ide-emails

2004-03-29 Thread John W. Holmes
From: "Red Wingate" <[EMAIL PROTECTED]> > > > > if(strpos($email,'@')) > > > > No, seriously. > > 'Look @ the screen. You will find wonderfull colors there!' > > doesn't look like an e-mail adress, does it ? A basic approch to really > check the syntax would be: > > preg_match("#^\s*[-\w_]+(\.[-\w_

Re: [PHP] reg expression for ide-emails

2004-03-29 Thread Red Wingate
Oh yeah, 'Look @ the screen. You will find wonderfull colors there!' doesn't look like an e-mail adress, does it ? A basic approch to really check the syntax would be: preg_match("#^\s*[-\w_]+(\.[-\w_]+)[EMAIL PROTECTED](\.[-\w_]+)+\s*$#sim", $email) Add your special german or french characters

Re: [PHP] reg expression for ide-emails

2004-03-29 Thread Justin French
On Monday, March 29, 2004, at 10:00 PM, John W. Holmes wrote: Robert Kornfeld wrote: as with april 1, on may use special german and frech characters for urls and email-names. does anyone know a reg. expression to validate the syntax of a email-adress? if(strpos($email,'@')) No, seriously. LMF

Re: [PHP] reg expression for ide-emails

2004-03-29 Thread John W. Holmes
Robert Kornfeld wrote: as with april 1, on may use special german and frech characters for urls and email-names. does anyone know a reg. expression to validate the syntax of a email-adress? if(strpos($email,'@')) No, seriously. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEX