public static string MoveSeeAlso(string articleText)
{
// is 'see also' section below references?
Match refSm = ReferencesSection.Match(articleText), seeAm = SeeAlsoSection.Match(articleText);
string references = refSm.Groups[1].Value, seealso = seeAm.Groups[1].Value;
if (seeAm.Success && seeAm.Index > refSm.Index && ReferencesSection.Matches(articleText).Count == 1)
{
articleText = articleText.Replace(seealso, "");
articleText = articleText.Replace(references, seealso + "\r\n" + references);
}
// newlines are fixed by later logic
return articleText;
}