I would like to retrieve filenames of the images (img
tag) from a string containing html code.
Example below: a string (html code) containing 2 img
html tags. Need to get filenames (not full url) of the images.
<p>One two thre four</p>
<img src="http://localhost:5000/uploads/360e2b55a984178fd102a6cff9d70bc943936461.jpg"
style="width: 300px; display: block; vertical-align: top; margin: 5px auto;
text-align: center;">
<p>Five six seven</p>
<img src="http://localhost:5000/uploads/a77381fa354a067ed128bc8fe5cdfc8f85aaedea.jpg"
style="width: 300px; display: block; vertical-align: top; margin: 5px auto;
text-align: center;">
<p>Eight nine ten</p>
Maybe this is feasable with a regular expression but I'm not an expert.