String imgTexts ; //String that contains the <img texts...
String strToRemove ;
for(int i=1; i<=12;i++)
{
//build the sctring that is going to be removed
strToRemove = String.Format(" content=\"test_img image {0} - test_server\" des=\"test_img image {0} - test_server\" ", i) ;
//replace the strToRemove with a empty string
imgTexts = imgTexts.Replace(strToRemove, "") ;
}
0
solved C# delete some string