I have this json object
arr[i].text
which returns
check this http://www.newlook.com/shop/womens/dresses/navy-short-sleeve-check-tunic-dress-_320165649
I want to return only the URL with a regex like so:
var urlreg = /(\bhttps?\:\/\/(www)?\.\w+\.\w+(\/[\w\d\-]+)*)/;
match = urlreg.exec(arr[i].text );
but doesn't work, is it something to with it being an object and not a string?