REPLACE 3

Hi Experts,

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

Thank you.
LVL 1
fpoyavoAsked:
Who is Participating?
 
drichardsConnect With a Mentor Commented:
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
 
NipNFriar_TuckCommented:
You can also use Regex statically...

so you could do:

string rs2 = System.Text.RegularExpressions.Regex(s, "\"");
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.