Removing "Back-Slash \" from string
-
Hi, I want to remove "Back-Slashes \" from string. Kindly note the following example.
string strText = "(0,2,\"\",\"113.07\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\")";
Thank you
-
Hi, I want to remove "Back-Slashes \" from string. Kindly note the following example.
string strText = "(0,2,\"\",\"113.07\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\")";
Thank you
try the String replace method this is the MSDN for it
-
Hi, I want to remove "Back-Slashes \" from string. Kindly note the following example.
string strText = "(0,2,\"\",\"113.07\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\")";
Thank you
use Replace to do it
string strText = "(0,2,\"\",\"113.07\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\")";
strText = strText.Replace("\\","");
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.cacttus.com
-
try the String replace method this is the MSDN for it
I tried following method but it does'nt work.
strText = strText.Replace('\',String.Empty);
strText = strText.Replace(('\').ToString(),String.Empty);
-
I tried following method but it does'nt work.
strText = strText.Replace('\',String.Empty);
strText = strText.Replace(('\').ToString(),String.Empty);
-
Hi, I want to remove "Back-Slashes \" from string. Kindly note the following example.
string strText = "(0,2,\"\",\"113.07\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\")";
Thank you
-
Hi, I want to remove "Back-Slashes \" from string. Kindly note the following example.
string strText = "(0,2,\"\",\"113.07\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\")";
Thank you
Process is same what blueboy ellastrate.
-
Hi, I want to remove "Back-Slashes \" from string. Kindly note the following example.
string strText = "(0,2,\"\",\"113.07\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\")";
Thank you
Are you sure you want to remove the \'s, they are actually what allows you string to contain the character: " You can't remove those because \" really means " in the string. If they were \\ it would mean \. So why are you trying to remove the characters that aren't even there?
Craigslist Troll: litaly@comcast.net "I have a theory that the truth is never told during the nine-to-five hours. " — Hunter S. Thompson