This regular expression:
<IMG\s([^"'>]+|'[^']*'|"[^"]*")+>
seems to process endlessly when given this text
<img src=http://www.blahblahblah.com/houses/Images/
single_and_multi/roof/feb09/01_img_trrnjks_vol2009.jpg' />
I would expect it to - not find a match (quickly) - because there is only one single quote in the text. I have had this happen in C# and also using the Expresso regex tool. If the text is a lot shorter it seems to work.
John.