Solved

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

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

792 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