Solved

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

Posted on 2009-05-11
2
209 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 250 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

919 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now