Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2009-05-11
2
Medium Priority
?
226 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

715 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