我有这个json对象
arr[i].text
返回
check this http://www.newlook.com/shop/womens/dresses/navy-short-sleeve-check-tunic-dress-_320165649
我想只返回带有正则表达式的URL:
var urlreg = /(\bhttps?\:\/\/(www)?\.\w+\.\w+(\/[\w\d\-]+)*)/;
match = urlreg.exec(arr[i].text );
但不起作用,它是一个对象而不是字符串吗?