I have a column in a MYSQL table that accepts TEXT which has HTML tags. Now I want to find all the URLs that have .png/.jpg in the HTML img src attribute.
For example:
Table name: mdl_course_sections; Column name: Summary; Data type of Summary: TEXT
Sample record:
Summary
----------
<table border="0">
<tbody>
<tr>
<td><img style="display: block; margin-left: auto; margin-right: auto;" src="http://xyz.au/abc.png" height="64" width="64" /></a></td>
<td> Learn about video slideshows.</td>
</tr>
<tr>
<td><img src="http://i1325.photobucket.com/albums/u630/teststudplane/plane-2.jpg" height="95" width="100" /></td>
<td> Explore how video can reinvent education.</td>
</tr>
</table>