protected string ExtractValue(string text, string regexp) { RegexOptions options = RegexOptions.IgnoreCase | RegexOptions.Compiled | RegexOptions.Singleline; Regex regex = new Regex(regexp, options); Match match = regex.Match(text); if (match.Success) { return(UrlDownloader.HtmlDecode(match.Groups["value"].Value)); } return(string.Empty); }