public static string RemoveDisambig(ref string articleText)
{
if (!Variables.LangCode.Equals("en"))
return "";
string strDisambig = "";
// Extract up to one disambig (should not be multiple per page), don't pull out of comments
if (WikiRegexes.Disambigs.IsMatch(WikiRegexes.Comments.Replace(articleText, "")))
{
articleText = WikiRegexes.Disambigs.Replace(articleText, m =>
{
strDisambig = m.Value;
return "";
}, 1);
}
return strDisambig;
}