You are here: Re: preg_match() regex to validate URL « PHP Programming Language « IT news, forums, messages
Re: preg_match() regex to validate URL

Posted by Rik on 02/12/07 09:42

On Mon, 12 Feb 2007 10:29:26 +0100, deko <deko@nospam.com> wrote:

>>> As I understand it, the characters that make up an Internet domain
>>> name can consist of only alpha-numeric characters and a hyphen
>>> (http://tools.ietf.org/html/rfc3696)
>> ..."Any characters, or combination of bits (as octets), are permitted
>> in DNS names. However, there is a preferred form that is required by
>> most applications.".....
>
> I just tried registering various domain names with an underscore. The
> registrar's system rejected it. While this may not be the best
> verification, I have yet to see a valid Internet domain with an
> underscore or any other non-alphanumeric character (other than a hyphen).

There are efforts to fully internationalise DNS entries, so even non-roman
based character sets are allowed. See for instance
<http://www.ietf.org/rfc/rfc4185.txt>. We're not there yet by a long shot,
but there's no doubt it will happen.

--
Rik Wasmus

 

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

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