MS-SQL statement to replace/delete sub-strings

Posted by StefanE on Stack Overflow See other posts from Stack Overflow or by StefanE
Published on 2010-06-02T07:50:56Z Indexed on 2010/06/02 7:53 UTC
Read the original article Hit count: 254

Filed under:
|

Hi,

I have a table with 6 columns containing HTML content with some markups in it and now when moving to a new designed site most of this HTML code has to be deleted. More or less all tags except and .

Is there a nice way of doing this, identify all tags end delete them within the data? I'm sure there are no < > symbols in the test so a regular expression would maybe work?

My alternative is to fecth every row, process it and update the database but I'm guessing this is possible to do in SQL directly.

Thanks, Stefan

© Stack Overflow or respective owner

Related posts about sql

Related posts about statement