Can not replace string value by Regex.Replace

  • Thread starter Thread starter Sudip_inn
  • Start date Start date
S

Sudip_inn

Guest
string strformula = "Segment Details~iPad (9.7inch) - Sales~9999" + "Segment Details~iPad Mini (7.9inch) - Sales~9999";
string strConstituent = "Segment Details~iPad (9.7inch) - Sales~9999";
string strCellAddress = "D85";

strformula = Regex.Replace(strformula, strConstituent, strCellAddress);

please execute my above code then u can understand Regex.Replace not working. how to fix it as a result i should be able to replace by regex replace.

thanks

Continue reading...
 
Back
Top