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
Solved

REPLACE 3

Posted on 2004-09-23
2
210 Views
Last Modified: 2010-04-15
Hi Experts,

Need to replace using regex double quotes in string by white spaces.

Thank you.
0
Comment
Question by:fpoyavo
2 Comments
 
LVL 19

Accepted Solution

by:
drichards earned 500 total points
ID: 12134637
Is this all you're trying to do?  Can be done with Regex or String.Replace:

            string rs1 = s.Replace('"', ' ');
            System.Text.RegularExpressions.Regex rx = new System.Text.RegularExpressions.Regex("\"");
            string rs2 = rx.Replace(s, " ");

where 's' is the source string.
0
 
LVL 7

Expert Comment

by:NipNFriar_Tuck
ID: 12143407
You can also use Regex statically...

so you could do:

string rs2 = System.Text.RegularExpressions.Regex(s, "\"");
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying 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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
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.
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 …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used.

789 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