Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how do i strip all tags incl quotes cdata - Regex.Replace

Posted on 2009-05-11
2
Medium Priority
?
229 Views
Last Modified: 2013-11-08
Hi,
I have the following which works great and strips all the html tags from my xml file where applicable:

Dim sMetaDesc As String = Regex.Replace(XPath("summary"), "<[^>]+>", "")

But I also need it to be able to remove quotes  "" .

What should the statement look like to do this?

Thanks
T
0
Comment
Question by:Tania_Farmer
2 Comments
 
LVL 9

Accepted Solution

by:
tillgeffken earned 1000 total points
ID: 24355001
try this (can't test it right now):

Dim sMetaDesc As String = Regex.Replace(XPath("summary"), "(""|<[^>]+>)", "")

Open in new window

0
 

Author Comment

by:Tania_Farmer
ID: 24355228
perfect!
thanks
Tania
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Screencast - Getting to Know the Pipeline
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question