I want to validate all type of url but few of my conditions are not working with the following regex:
^((https?|ftp|smtp|http):\/\/)?(www.)?[a-z0-9]+\.[a-z]+(\/[a-zA-Z0-9#]+\/?)*\.(com|in)$
It is not working with
- http://google.com
- https://google.com
- google.com