- /// <summary>
- /// 过滤掉这些特殊字符串
- /// </summary>
- /// <param name="str"></param>
- /// <returns></returns>
- static string NewString(string str) {
- str = "想҉找҉点҉事҉儿҉做҉下҉的҉亲҉过҉来҉看҉看҉";
- char[] strArray = str.ToCharArray();
- string result="";
- for (int i = 0,k=0; i < strArray.Length; i++)
- {
- if (strArray[i]=='҉')
- {
- continue;
- }
- else
- {
- result+=strArray[i];
- }
- }
- return result;
- }
复制代码 |