note 54195 deleted from function.preg-match by mazzanet
| From: | mazzanet@php.net | Date: | Mon, 27 Jun 2005 07:33:00 +0000 |
| Subject: | note 54195 deleted from function.preg-match by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-90997@lists.php.net to get a copy of this message | ||
Note Submitter: MKP - me again
Reason: useless
----
Actually, for the purpose of email parsing, it does not make sense to limit the TLD to between 2 and
6 characters. The TLD is limited just as any other domain part. While it may not be conceivably
likely, it is still better to write a function that never has to change. An example of a valid TLD
over 6 characters, right off the top of my head, is localdomain. It is even fairly likely that an
organization might name their servers, for example, sillystuff.localdomain.