Hi All

I am trying to validate a URL. I want to be able to validate the following URLS:

http://xxx.xxx/
http://xxx.xxx.xxx/
http://xxx.xxx.xxx.xx/

I have been trying to write a reg exp that reads like this:

http://xxx. AND (xxx OR xxx.xxx OR xxx.xxx.xx) AND /

Here is what if have been trying:

var urlReg = "^http:\\/\\/([a-zA-Z0-9])+\\.{1}([a-zA-Z0-9-]+)|([a-zA-Z0-9]+\\.{1}[a-zA-Z0-9]+)|([a-zA-Z0-9]+\\.{1}[a-zA-Z0-9]+\\.{1}[a-zA-Z0-9]{2})?\\/$";

Any suggestions on why this wont work?

Regards, Ben