摘要: 用正则表达式识别URL超链接 const reg = '(https?|http|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]'; 将字符串中的URl提取出来 const newStr = str.match(reg) 阅读全文
posted @ 2021-07-30 16:03 沈yy 阅读(755) 评论(0) 推荐(0)