I am looking to see how I can program in ASP.NET 2.0 using VB.NET. I want to search through some text that is grabbed from a SQL DB. When searching, I would like it to either find <p through </p> or <object through </object>.....then it needs to be stripped and exchanged with, "To watch the video, log on to xx.com". Here is 2 samples in the text i would like the obvious part replaced...
There's really not too much to the video but her showing off her bod. We get it Mariah! You lost weight!
<p align=centeR>
<object width="425" height="344"><param name="movie" value="
http://www.youtube.com/v/ClhEP-TX0WA&hl=en&fs=1">
</param><p
aram name="allowFullScreen" value="true"></param><embe
d src="
http://www.youtube.com/v/ClhEP-TX0WA&hl=en&fs=1" type="application/x-shockw
ave-flash"
allowfullscreen="true" width="425" height="344"></embed></obj
ect>
</p>
OR
There's really not too much to the video but her showing off her bod. We get it Mariah! You lost weight!
<object width="425" height="344"><param name="movie" value="
http://www.youtube.com/v/ClhEP-TX0WA&hl=en&fs=1">
</param><p
aram name="allowFullScreen" value="true"></param><embe
d src="
http://www.youtube.com/v/ClhEP-TX0WA&hl=en&fs=1" type="application/x-shockw
ave-flash"
allowfullscreen="true" width="425" height="344"></embed></obj
ect>
Start Free Trial