using System;

  using System.Collections.Generic;

  using System.Linq;

  using System.Text;

  using System.IO;

  using System.Text.RegularExpressions;

  namespace q提取网页中的网站链接

  {

  class Program

  {

  static void Main(string[] args)

  {

  string str = File.ReadAllText("1.htm",Encoding.UTF8);

  MatchCollection ms = Regex.Matches(str, @"""(http://.+?)""");

  if (ms.Count!=0)

  {

  for (int i = 0; i < ms.Count;i++ )

  {

  if (ms[i].Success)

  {

  Console.WriteLine(ms[i].Groups[1].Value);

  }

  }

  }

  Console.ReadKey();

  }

  }

  }