Help with Regex
There is some tags with missing quote.
<img src=file.jpg border="0" alt=text goes here title=this is a title />
<img src="file.jpg" border="0" alt="text goes here" title="this is a title" />
A robust solution for this isn't trivial, unless the html strictly follows the format you've provided. But I doubt it follows a format strictly, for obvious reasons
Logic without the fatal effects.
All code snippets are licensed under WTFPL.