Reply to Re: preg_match() regex to validate URL

Your name:

Reply:


Posted by deko on 02/12/07 09:29

>> 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).

> '/^https?:\/\/[a-z0-9-]+(\.[a-z0-9-]+)+/i'

Thanks, Rik

[Back to original 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

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