in reply to Regex not matching all in DB

First of all, my initial instinct is to recommend you have a look at HTML::Entities, which will save you from expanding tagremover ad infinitum as you discover you have more entities to replace.

As for your question, the only thing I can think of is that Win32::ODBC->Data does not return a modifiable string reference. Hopefully, someone more enlightened can help!