public static GetZerothSection ( string articleText ) : string | ||
articleText | string | |
return | string |
public static string GetZerothSection(string articleText)
{
Match m = HeadingStart.Match(articleText);
if (m.Success)
return articleText.Substring(0, m.Index);
return articleText;
}