Hi guys,

I need to test a string pass via form to see if it is a valid url or
not.

To start, I want to check for at least one '.' (period), as valid
internet hostnames have at least one.

Also check for presence of a valid top level domain
(.com, .net, .cc, .ru, etc).

If none found, check string if hostname contains a valid IP.

Then also check to see if the url ends in a file extension,
like .exe.

Any other ideas?

-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 mailing list - http://groups.google.com/group/openbd?hl=en

 !! save a network - please trim replies before posting !!

Reply via email to