I am trying to validate an URL in Swift 3 but I can't seem to find the Regex that suits my needs. Regex that I am after needs to accept following combinations:
http://google.com
http://google.com/foo/bar:30/35
https://google.com
https://google.com/foo/bar:30/35
www.google.com
google.com