1 function httpString(s) {
2     var reg = /(https?|http|ftp|file):\/\/[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]/g;
3     s = s.match(reg);
4     return (s)
5 }

 

相关文章: