Roshworld
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, @"""|\\", "");
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment