#正则表达式判断http链接
res = %r(http://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|])
字符串.scan(res)
scan方法
最新推荐文章于 2022-02-24 17:28:14 发布
#正则表达式判断http链接
res = %r(http://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|])
字符串.scan(res)