Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.40 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. how to read an html file and replace with our characters
  2. Hi XXX,
  3. Thanks for joing in the Club, your ClubcardNo is : XXXXX
  4.  
  5. Thanks
  6.        
  7. String s = s.Replace("XXXXX", "23453");
  8.        
  9. var str=@"Hi XXX,
  10.                 Thanks for joing in the Club, your ClubcardNo is : XXXXX
  11.  
  12.                 Thanks";
  13.  
  14. str.Replace("XXXXX","23453").Replace("XXX","Kiran");
  15.        
  16. string output = Regex.Replace(input, "XXX", "Kiran");