I need a regex to validate a URL with conditions below:
Ex:
www.google.com
www.google.com/[any_params]
http://google.com/[any_params]
https://google.com/[any_params]
google.com/[any_params]
I used this regex:
/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/
but it's returning false with this case: www.google.com
or returning true with this case:
Thanks for your help!