Is there any regex which will validate both an absolute URL and relateve URl for Javascript.
I do have following Regex which works fairly well for absolute URL except the part where it is making the HTTP part mandatory. I want it optional.
Here is Regex:
/(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?/;
thanks
