示例#1
0
        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);
        }