hyperlink, image
by bvotcode
HTML
a1b1c1 + <img src="https://i.imgur.com/mKXlKKO.png" alt="My Image 1" /> Detail <a href="https://test1.com" title="">a1 b1 c1</a> comment <a href="https://test2.com" title="">a2 b2</a> Download: <a href="https://download.com" title="">download Link</a> a2b2c2 <img src="https://i.imgur.com/mKXlKKO.png" alt="My Image 2" />
JavaScript
var paths = [
"",
"",
"",
"",
""
];
for (var i = 0; i < paths.length; i++) {
console.log(paths[i].match(/(?<=!\[Icon]\().*?\.(?:png|jpg)(?=[^)]*\))/g)[0]);
}