You are here: Re: This one better I think. (Re: Regex help for email) « PHP Programming Language « IT news, forums, messages
Re: This one better I think. (Re: Regex help for email)

Posted by Steve on 10/25/07 04:41

"AnrDaemon" <anrdaemon@freemail.ru> wrote in message
news:902856077.20071025025851@freemail.ru...
> Greetings, Steve.
> In reply to Your message dated Wednesday, October 24, 2007, 21:34:41,
>
>>>>> <?php
>>>>>
>>>>> $s = 'celo@tum.com, "mnp test" <celo@tum.com>,"test testt"
>>>>> <otur@par.com>,
>>>>> sett@tttt.com,test@twest.com';
>>>>>
>>>>> if(preg_match_all('#(?:^|[\s\,])<?([0-9A-Za-z\_]+(?:[\-\.][0-9A-Za-z\_]+)*\@[0-9A-Za-z]+(?:[\.\-\_][0-9A-Za-z]+)+)>?#xi',
>>>>> $s, $ta))
>>>>> {
>>>>> var_export($ta[1]);
>>>>> }
>>>
>>> S> of course you would. however, notice that whatever your prowess at
>>> regex,
>>> S> you lack understanding of the basic email conventions explained in
>>> the
>>> S> rfc(s). your preg doesn't allow for atomic account names. ;^)
>>>
>>> Example please?
>
> S> read the freaking email rfc(s).
>
> Do it for me, please.

WTF?!!! i read it for me...and those that pay me. you may continue to be
lazy at your liesure.

>>> What You mean "atomic account names"?
>
> S> hmmmm, what do you think?
>
> S> the rfc's allow for 'illegal' characters in account names as long as
> they're
> S> encapsulated. this is to compensate for non-latin character sets
> S> (particularly, non-english sets). is that ringing a bell?
>
> Never saw any in 10 years.

and you speak english and type with a 'normal' keyboard. now, for the
chinese, japanese, etc. people out there...well, you should get the point.
hell, even this plain english account is valid:

"oops, there's spaces and commas and shit"@example.com

get the picture, cupcake?

> And I think I'll never see.

good for you. glad you feel that way. that doesn't change the fact that
email rfc standards define and allow for it.

> Not all what allowed by RFC is acceptable by real ISP's.

uhmmmm...'real' isp? hmmmm, what would a 'fake' isp look like i wonder?
maybe like the sprint commercials where 'the other guy's network' is a bunch
of propped up pictures of people. can you hear me now? ROFLMAO!

ok, nimrod...why not quantify and qualify that statement so no one here
thinks you're just talking outta your ass.

which isp does NOT support which rfc standard(s)?

since you haven't even READ ONE SINGLE email rfc, i doubt you can back
yourself up...save, to backpeddle.

> Typical rules I see around the world:
> (?i)^[a-z][0-9a-z]*(?:[\.\-\_][0-9a-z]+)*$

that's because you're viewing the world through your ass. RTFM.

> Sincerely Yours,

i don't want you...unless returning you means i can get a refund!

run along now.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация