294
The best answer on StackOverflow: Using RegEx to parse HTML
(stackoverflow.com)
Post funny things about programming here! (Or just rant about your favourite programming language.)
The quote must not be escaped when you start with a single quote. The rest doesn't. This is valid and tested:
<img alt='my "<img>"'>