DotNetGnat
Programmer
Guys,
lets say i have a text field which has text like below
question:
how can i remove the tags shown in red ONLY from the end of the text...i mean there can be valid <br> tags in between the document but i only want to remove them from the end...
the below is what i have in mind...
any suggestions...thanks
-DNG
lets say i have a text field which has text like below
Code:
<html><body > <b>Continuing Education/Training</b><br><br>"USAOC Wetland Delineatior", FAA Course # 1200, National Environmental Policy Act Rutgers University: Stormwater Management, HEC1, Basic Plant Id. for Wetland Delineation, Introduction to Wetland Id., and Coastal Wetland Plant Id.[red]<br> <br><br> [/red]</body></html>
question:
how can i remove the tags shown in red ONLY from the end of the text...i mean there can be valid <br> tags in between the document but i only want to remove them from the end...
the below is what i have in mind...
Code:
Declare @ptr binary(16)
select @ptr=textptr(mytextfld) from mytable
--code to find and remove the <br> tags from the end
use updateText to update the tags with ''
any suggestions...thanks
-DNG