baniol
1/23/2014 - 10:27 AM

extract text from html tag, regexp

extract text from html tag, regexp

data.replace(/[^<]*(<a href="([^"]+)">([^<]+)<\/a>)/g, function() {
  matches.push(arguments[2]);
});