Hello,
we are running SQL 2005 and I was wondering what regular expressions could be used to encapsulate everything between the "<" and ">" in HTML tags. I have been trying to use the following code, but it only strips the "<" opening tag leaving "FONT face=Arial size=2>" and "/FONT>" for instance.
the code is below.
USE [VISION_TEST]
UPDATE CL_Backup set Memo = REPLACE(Memo,substring(Memo,PATINDEX('%<[A-Za-z0-9]%>%',Memo), 1),'') WHERE PATINDEX('%<[A-Za-z0-9]%>%', Memo) < > 0
thanks in advance,
we are running SQL 2005 and I was wondering what regular expressions could be used to encapsulate everything between the "<" and ">" in HTML tags. I have been trying to use the following code, but it only strips the "<" opening tag leaving "FONT face=Arial size=2>" and "/FONT>" for instance.
the code is below.
USE [VISION_TEST]
UPDATE CL_Backup set Memo = REPLACE(Memo,substring(Memo,PATINDEX('%<[A-Za-z0-9]%>%',Memo), 1),'') WHERE PATINDEX('%<[A-Za-z0-9]%>%', Memo) < > 0
thanks in advance,