using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
String html = @"<DIV class=content>
<H2>A-Z</H2>
<UL class=listcol>
<LI>
<A href=""http://www.djmick.co.uk/photos01/anson_mount_pictures.htm"">Anson Mount</A>
<LI>
<A href=""http://www.djmick.co.uk/photos01/troy_montero_pictures.htm"">Troy Montero</A>
<LI>
<A href=""http://www.djmick.co.uk/gallery16/tyson_beckford_pictures.htm"">Tyson Beckfor</A>
<LI>
<A href=""http://www.djmick.co.uk/photos01/zen_gesner_pictures.htm"">Zen Gesner</A>
</LI>
</UL>
<DIV class=clear></DIV>
</DIV>
<DIV class=clear></DIV>
<!-- ######## 20 PIXELS SPACE _ IMPORTANT FIX ########### -->
<DIV class=space></DIV>
<!-- ######## 20 PIXELS SPACE _ IMPORTANT FIX ########### -->
<DIV class=content>";
String pattern = @"<A\shref=""(?<Url>http:\/\/www\.djmick\.co\.uk\/[^""]*)"">(?<Actor>[^<]*)";
Regex rx = new Regex(pattern, RegexOptions.IgnoreCase);
Match m = rx.Match(html);
while (m.Success)
{
Console.WriteLine("Url: {0}", m.Groups["Url"].Value);
Console.WriteLine("Actor: {0}", m.Groups["Actor"].Value);
Console.WriteLine("");
m = m.NextMatch();
}
Console.ReadLine();
}
}
}
