Solved

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

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

17 Experts available now in Live!

Get 1:1 Help Now