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, @"""|\\", "");
Posted by Rosh Mohan at 9:04 PM
Labels: C#, Remove quotes

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2021 (1)
    • ►  March (1)
  • ►  2020 (1)
    • ►  August (1)
  • ►  2019 (10)
    • ►  July (1)
    • ►  June (1)
    • ►  April (5)
    • ►  March (2)
    • ►  February (1)
  • ►  2014 (2)
    • ►  July (2)
  • ►  2013 (1)
    • ►  August (1)
  • ▼  2009 (11)
    • ►  September (1)
    • ►  August (3)
    • ►  May (1)
    • ▼  March (4)
      • Asp.net Querystring Encrypt
      • Delete Key Fro registry
      • How to run an application next to installation fin...
      • Remove quotes from string C#
    • ►  February (2)
  • ►  2008 (8)
    • ►  November (1)
    • ►  October (1)
    • ►  September (2)
    • ►  July (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
  • ►  2007 (9)
    • ►  December (2)
    • ►  November (1)
    • ►  October (6)
Simple theme. Theme images by gaffera. Powered by Blogger.