Showing posts with label Remove quotes. Show all posts
Showing posts with label Remove quotes. Show all posts

Tuesday, March 10, 2009

Remove quotes from string C#

System.Text.RegularExpressions.Regex.Replace(your Variable, expression, replace Character/string);

below ex remove quotes from input string

string str=@"ha\"llo\"
System.Text.RegularExpressions.Regex.Replace(str, @"""|\\", "");