Possible Duplicate:
Validate email address in Javascript?
What is the best regular expression to check if a string is a valid URL?
I want to test that whether the string is url or not, right now I am stuck at this point.
I am using this regex to validate my URL
/(https|http):\/\/([_a-z\d\-]+(\.[_a-z\d\-]+)+)(([_a-z\d\-\\\.\/]+[_a-z\d\-\\\/])+)*/;
The problem with this regex is that it fails to validate this type of URL
http://www.abc/abc/
how to check that case.?