Dovberman
asked on
Substring Replace Method
The following works when replacing a single quote with a blank.
// Replace "'" with ""
string sb = "a'bc'd";
string sb1 = "";
sb1 = sb.Replace("'", "");
How do I replace a double quote with a blank?
// Replace """ with ""
string sb = "a"bc"d";
string sb1 = "";
sb1 = sb.Replace(""", "");
Thanks
// Replace "'" with ""
string sb = "a'bc'd";
string sb1 = "";
sb1 = sb.Replace("'", "");
How do I replace a double quote with a blank?
// Replace """ with ""
string sb = "a"bc"d";
string sb1 = "";
sb1 = sb.Replace(""", "");
Thanks
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thank you
You need to escape the double quote. Use two double quotes in order to escape it.
Open in new window
Giannis