I am using the below regex of validating the website URL.
^(http(s?):\/\/)?(www\.)+[a-zA-Z0-9\.\-\_]+(\.[a-zA-Z]{2,3})+(\/[a-zA-Z0-9\_\-\s\.\/\?\%\#\&\=]*)?$
It work fine with the below website URL to match:
www.google.com
It also not math below URL
google.com
google.co
www.g@oogle.com
But it will fails to test the below URL:
www...google.com
Please give the suggestion for the same. I have already go through the below stack overflow URL but answer is not useful for me.