close

Case 1:

myString =Regex.Replace(myString,"/kg","",RegexOptions.IgnoreCase);

Case 2: If you're going to do this a lot of times, you could do:

// You can reuse this object
Regex regex =newRegex("/kg",RegexOptions.IgnoreCase);
myString
= regex.Replace(myString,"");
全站熱搜
創作者介紹
創作者 jimili 的頭像
jimili

影子社社長家的後門

jimili 發表在 痞客邦 留言(0) 人氣()