Exemplo n.º 1
0
        private static List<String> getPagedUrl( String page, String url )
        {
            String urlWithouExt = getUrlWithouExt( url );

            List<String> list = new List<string>();

            MatchCollection matchs = Regex.Matches( page, "<a href=\"(" + urlWithouExt + "[^\"]*?)\".+?\">", RegexOptions.Singleline );
            foreach (Match m in matchs) {
                if (list.Contains( m.Groups[1].Value )) continue;
                list.Add( m.Groups[1].Value );
            }

            return list;
        }