Advertisement

07.03.2008 at 12:15PM PDT, ID: 23537907
[x]
Attachment Details

stripping html and replacing to other text

Asked by attipa in Programming for ASP.NET, Visual Basic Programming

Tags: ASP.NET 2.0, VB.NET

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><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/ClhEP-TX0WA&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>
</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><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/ClhEP-TX0WA&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>Start Free Trial
[+][-]07.03.2008 at 12:22PM PDT, ID: 21928325

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 12:37PM PDT, ID: 21928416

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 12:39PM PDT, ID: 21928427

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 12:41PM PDT, ID: 21928442

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 12:46PM PDT, ID: 21928473

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 12:50PM PDT, ID: 21928489

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 12:51PM PDT, ID: 21928497

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 01:00PM PDT, ID: 21928554

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Programming for ASP.NET, Visual Basic Programming
Tags: ASP.NET 2.0, VB.NET
Sign Up Now!
Solution Provided By: joechina
Participating Experts: 3
Solution Grade: A
 
 
[+][-]07.03.2008 at 01:04PM PDT, ID: 21928586

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.03.2008 at 01:20PM PDT, ID: 21928707

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 01:25PM PDT, ID: 21928740

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628