用户:Makecat/AWB/RemoveTestEdits

WikiFunctions.Parse.HideText ht = new WikiFunctions.Parse.HideText(true, false, true);
 
        public string ProcessArticle(string ArticleText, string ArticleTitle, int wikiNamespace, out string Summary, out bool Skip)
        {
            Skip = false;
            Summary = "";
 
ArticleText = ht.Hide(ArticleText);
 ArticleText = Regex.Replace(ArticleText, @"\[\[链接标题\]\]", "");
 ArticleText = Regex.Replace(ArticleText, @"\[\[連結標題\]\]", "");
 ArticleText = Regex.Replace(ArticleText, @"\[\[条目#章节\|文本\]\]", "");
 ArticleText = Regex.Replace(ArticleText, @"\[\[條目#章節\|文本\]\]", "");
 ArticleText = Regex.Replace(ArticleText, @"\[http://www.example.com 链接标题\]", "");
 ArticleText = Regex.Replace(ArticleText, @"\[http://www.example.com 連結標題\]", "");
 ArticleText = Regex.Replace(ArticleText, @"\{\{模板名\}\}", "");
 ArticleText = Regex.Replace(ArticleText, @"Category:分类名", "");
 ArticleText = Regex.Replace(ArticleText, @"Category:分類名", "");
 ArticleText = Regex.Replace(ArticleText, @"\[\[目标条目名\]\]", "");
 ArticleText = Regex.Replace(ArticleText, @"\[\[目標條目名\]\]", "");
 ArticleText = Regex.Replace(ArticleText, @"\[\[目标页名称\]\]", "");
 ArticleText = Regex.Replace(ArticleText, @"\[\[目標頁名稱\]\]", "");
 ArticleText = Regex.Replace(ArticleText, @"\[\[File:Example.jpg\]\]", "");
 ArticleText = Regex.Replace(ArticleText, @"\[\[Media:Example.ogg\]\]", "");
 ArticleText = Regex.Replace(ArticleText, @"File:图像名", "");
 ArticleText = Regex.Replace(ArticleText, @"File:圖像名", "");
 ArticleText = Regex.Replace(ArticleText, @"File:PictureFileName.jpg\|圖片題注", "");
 ArticleText = Regex.Replace(ArticleText, @"= 标题文字 =", "");
 ArticleText = Regex.Replace(ArticleText, @"= 標題文字 =", "");
 ArticleText = Regex.Replace(ArticleText, @"= 标题文本 =", "");
 ArticleText = Regex.Replace(ArticleText, @"= 標題文本 =", "");
 ArticleText = Regex.Replace(ArticleText, @"== 大標題文字 ==", "");
 ArticleText = Regex.Replace(ArticleText, @"== 大标题文字 ==", "");
 ArticleText = Regex.Replace(ArticleText, @"'''粗体文字'''", "");
 ArticleText = Regex.Replace(ArticleText, @"''斜体文字''", "");
 ArticleText = Regex.Replace(ArticleText, @"''斜體文字''", "");
 ArticleText = Regex.Replace(ArticleText, @"'''粗體文字'''", "");
 ArticleText = Regex.Replace(ArticleText, @"<del>删除线</del>", "");
 ArticleText = Regex.Replace(ArticleText, @"<del>刪除線</del>", "");
 ArticleText = Regex.Replace(ArticleText, @"下划线</span>", "");
 ArticleText = Regex.Replace(ArticleText, @"下劃線</span>", "");
 ArticleText = Regex.Replace(ArticleText, @"左对齐\n</div>", "");
 ArticleText = Regex.Replace(ArticleText, @"左對齊\n</div>", "");
 ArticleText = Regex.Replace(ArticleText, @"居中\n</div>", "");
 ArticleText = Regex.Replace(ArticleText, @"置中\n</div>", "");
 ArticleText = Regex.Replace(ArticleText, @"右对齐\n</div>", "");
 ArticleText = Regex.Replace(ArticleText, @"右對齊\n</div>", "");
 ArticleText = Regex.Replace(ArticleText, @"<sup>上标</sup>", "");
 ArticleText = Regex.Replace(ArticleText, @"<sup>上標</sup>", "");
 ArticleText = Regex.Replace(ArticleText, @"<sub>下标</sub>", "");
 ArticleText = Regex.Replace(ArticleText, @"<sub>下標</sub>", "");
 ArticleText = Regex.Replace(ArticleText, @"; 释义 : 定义文本", "");
 ArticleText = Regex.Replace(ArticleText, @"; 釋義 : 定義文本", "");
 ArticleText = Regex.Replace(ArticleText, @"color: ColorName", "");
 ArticleText = Regex.Replace(ArticleText, @"彩色文本</span>", "");
 ArticleText = Regex.Replace(ArticleText, @"\{\{quote\|\n引文\n\}\}", "");
 ArticleText = Regex.Replace(ArticleText, @"<code>代码</code>", "");
 ArticleText = Regex.Replace(ArticleText, @"<code>程式碼</code>", "");
 ArticleText = Regex.Replace(ArticleText, @"源代码

", "");

ArticleText = Regex.Replace(ArticleText, @"源程式碼</source>", "");
ArticleText = Regex.Replace(ArticleText, @"", "");
ArticleText = Regex.Replace(ArticleText, @"", "");
ArticleText = Regex.Replace(ArticleText, @"[1]", "");
ArticleText = Regex.Replace(ArticleText, @"[2]", "");
ArticleText = Regex.Replace(ArticleText, @"「」", "");
ArticleText = Regex.Replace(ArticleText, @"『』", "");
ArticleText = Regex.Replace(ArticleText, @"()", "");
ArticleText = Regex.Replace(ArticleText, @"《》", "");
ArticleText = Regex.Replace(ArticleText, @"〈〉", "");
ArticleText = Regex.Replace(ArticleText, @"【】", "");
ArticleText = Regex.Replace(ArticleText, @"〖〗", "");
ArticleText = Regex.Replace(ArticleText, @"〔〕", "");
ArticleText = Regex.Replace(ArticleText, @"“”", "");
ArticleText = Regex.Replace(ArticleText, @"‘’", "");

           return ht.AddBack(ArticleText);

           return ArticleText;
       }

</source>

  1. ^ 参考
  2. ^ 参考