I am using the following expression for URL validation.
^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$
However, when I have
"httpcolonforwardslashessite" (colon = : and foward slashes = //)
it still passes it as a url. how can I modify the above expression to make sure that there is ".com/net" at the end?
Thank you
tldr: I want to check for .com or .net at the end of url. What changes can I make to above exp to achieve this?