5/10/2010 6:59:30 AM
Title:
Regular expression for url validation
Hello Friends!
I am working on a project where I need to validate a url and I am
really exhausted making that regular expression for that. Can anyone
suggest me a regular expression which validates exactly the folowing
format -
http://domainname/anystring/filename.fileextension
for example it should validate the folowing urls -
http://in.yahoo.com/download/picasa.zip
or
http://download.com/wine.deb
or
http://debian.org/messenger/chat/digsby.bin
IT should not validate folowing urls -
http://www.yahoo.com
http://yahoo.com
http://openoffice.zip