Re: [PHP] eregi(mail)

2002-05-21 Thread Denis L. Menezes
.); exit; } Please help. Denis - Original Message - From: Steve Buehler [EMAIL PROTECTED] To: Kevin Stone [EMAIL PROTECTED] Cc: PHP [EMAIL PROTECTED] Sent: Saturday, May 11, 2002 2:45 AM Subject: Re: [PHP] eregi(mail) Either Google is wrong (probably) or they are now allowing things like

Re: [PHP] eregi(mail)

2002-05-21 Thread Miguel Cruz
On Tue, 21 May 2002, Denis L. Menezes wrote: I use the following code, but it does not work. Is there something wrong? If (ereg('^[-!#$%\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.''.'[-!#$%\'*+\\/0-9=?A-Z^_`a -z{|}~]+\.'.'[-!#$%\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email_address)) One problem (syntax

Re: [PHP] eregi(mail)

2002-05-16 Thread Liam Gibbs
Thanks to all who helped out with the eregi(mail) stuff. I got my problem solved, and on top of that, there were some bugs that I found in the code. Thanks again to everyone. __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience

Re: [PHP] eregi(mail)

2002-05-10 Thread Analysis Solutions
Hi Liam: On Fri, May 10, 2002 at 09:48:58AM -0700, Liam Gibbs wrote: Does anyone have a decent eregi statement for validating e-mail addresses? eregi('^[a-z0-9_.=+-]+([a-z0-9-]+\.)+([a-z]{2,6})$', $Email); Enjoy, --Dan -- PHP classes that make web design easier SQL

Re: [PHP] eregi(mail)

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Liam Gibbs wrote: Does anyone have a decent eregi statement for validating e-mail addresses? I've tried the ones on the site, but there seems to be small bugs with each of them. They tell me that [EMAIL PROTECTED] is an invalid e-mail address. Well, it currently is an

Re: [PHP] eregi(mail)

2002-05-10 Thread Kevin Stone
it was useful in some tiny miniscule sort of way. :) -- Kevin Stone [EMAIL PROTECTED] - Original Message - From: Analysis Solutions [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Friday, May 10, 2002 10:59 AM Subject: Re: [PHP] eregi(mail) Hi Liam: On Fri, May 10, 2002 at 09

Re: [PHP] eregi(mail)

2002-05-10 Thread Steve Buehler
function check_input($array){ global $HTTP_REFERER; $valid = 1; if(gettype($array)==array) { while (list($index, $subarray) = each($array) ) { if(ereg(required_, $index) (($subarray == ) || ($subarray == ))) {

Re: [PHP] eregi(mail)

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Kevin Stone wrote: I had always been suspicious about email validators so I did a big long search on Google about standard address formats. It turns out that aside from the symbol emails have no standard format whatsoever. So ereg('', $email) is really the only

Re: [PHP] eregi(mail)

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Steve Buehler wrote: if(ereg('^[-!#$%\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.''.'[-!#$%\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', If I'm reading it correctly, this will let invalid addresses through. The domain component (after the sign) can only

Re: [PHP] eregi(mail)

2002-05-10 Thread Analysis Solutions
Folks: On Fri, May 10, 2002 at 01:27:45PM -0500, Steve Buehler wrote: if(ereg('^[-!#$%\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.''.'[-!#$%\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $subarray)){ Those characters don't conform to the RFC.

Re: [PHP] eregi(mail)

2002-05-10 Thread Steve Buehler
: Re: [PHP] eregi(mail) Hi Liam: On Fri, May 10, 2002 at 09:48:58AM -0700, Liam Gibbs wrote: Does anyone have a decent eregi statement for validating e-mail addresses? eregi('^[a-z0-9_.=+-]+@([a-z0-9-]+\.)+([a-z]{2,6})$', $Email); Enjoy, --Dan -- PHP

Re: [PHP] eregi(mail)

2002-05-10 Thread Steve Buehler
To tell you the truth, I can't read it. Steve At 01:32 PM 5/10/2002, Miguel Cruz wrote: On Fri, 10 May 2002, Steve Buehler wrote: if(ereg('^[-!#$%\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.''.'[-!#$%\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', If I'm reading it correctly,

Re: [PHP] eregi(mail)

2002-05-10 Thread Kevin Stone
format is irrelevant. -Kevin - Original Message - From: Miguel Cruz [EMAIL PROTECTED] To: Kevin Stone [EMAIL PROTECTED] Cc: PHP-general [EMAIL PROTECTED] Sent: Friday, May 10, 2002 12:30 PM Subject: Re: [PHP] eregi(mail) On Fri, 10 May 2002, Kevin Stone wrote: I had always been suspicious

RE: [PHP] eregi(mail)

2002-05-10 Thread Nathan Cassano
This is what I have used. ? if(eregi(^[_.+a-z0-9-]+@[a-z0-9-]+(\.[a-z0-9-]+)*(\.([a-z]){2,4})\$, $email)){ echo Good Email!; } ? Here is an excellent article on Regular Expressions. Learning to Use Regular Expressions by Example http://www.phpbuilder.com/columns/dario19990616.php3

Re: [PHP] eregi(mail)

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Kevin Stone wrote: As we all know ARPA is thet university network, funded by the government to build an information infrastructure that eventually became the internet we have today. But the standards for text messaging within the ARPA net have been added to over the