我试图验证Swift 3中的URL,但我似乎无法找到适合我需要的正则表达式.我所追求的正则表达式需要接受以下组合:
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
regex swift
regex ×1
swift ×1