小编Vin*_*ale的帖子

在Swift 3中验证URL

我试图验证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
Run Code Online (Sandbox Code Playgroud)

regex swift

0
推荐指数
1
解决办法
5005
查看次数

标签 统计

regex ×1

swift ×1