JSFiddle - React, Tailwind, and code Playground
by ryanrolds
JavaScript
var string = '2011 May 30: <a href="ap110530.html">The Last Panorama of the Spirit Rover on Mars</a><br>\n2011 May 29: <a href="ap110529.html">Comet Between Fireworks and Lightning</a><br>\n2011 May 28: <a href="ap110528.html">The Mileage of Light</a><br>';
var match;
var regex = /([0-9]*)[^>0-9]*>([^<]*)<\/a>/gm;
while(match = regex.exec(string)) {
console.log(match[1],match[2]);
}