WikiFunctions.Tools.RedirectTarget C# (CSharp) Method

RedirectTarget() public static method

Gets the target of the redirect
public static RedirectTarget ( string articleText ) : string
articleText string The text of the article
return string
        public static string RedirectTarget(string articleText)
        {
            Match m = WikiRegexes.Redirect.Match(WikiRegexes.UnformattedText.Replace(FirstChars(articleText, 512), ""));
            return WikiDecode(m.Groups[1].Value).Trim();
        }
Tools