Re: last questions

From: Date: Fri, 28 Mar 2003 20:18:57 +0000
Subject: Re: last questions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-141489@lists.php.net to get a copy of this message
Steve, et al -- ..and then Steve Jackson said... % .. % // check an email address is possibly valid % if (ereg("^[a-zA-Z0-9_\.\-]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", % $email)) .. You could just downcase the address and save some chars; email is case-insensitive. You've left out the '+' character used for name+extensions under sendmail (and perhaps postfix). You allow an ending . on a hostnmae, which you shouldn't. It looks like you could switch your two [] expressions on the right side and lose the \. in the middle and be OK. % % HTH HTH & HAND :-D -- David T-G * There is too much animal courage in (play) davidtg@justpickone.org * society and not sufficient moral courage. (work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

« previous php.general (#141489) next »