var searchText = $('yourElement').text(),
// urls will be an array of URL matches
urls = searchText.match(/(http|https)?(://)?(S*).(w{2,4})/ig);
// you can then iterate through urls
for (var i = 0, il = urls.length; i < il; i++) {
// do whatever with urls[i]
}