本帖最后由 csdhd 于 2011-04-20 20:01:16 编辑

解决方案 »

  1.   

    string result = Regex.Match(subjectString, @"token=(\w+)"";", RegexOptions.Singleline).Groups[1].Value;
      

  2.   

    Regex re = new Regex("(?<key>[^\\?=&]+)=(?<value>[^=&]*)");
    MatchCollection mc = re.Matches("?ct=ajax_user&ac=pick_space&token=756bc86277ca7a738e490ac793d1c515");
    foreach (Match ma in mc)
    {
       Console.WriteLine("{0}:{1}", ma.Groups["key"].Value, ma.Groups["value"].Value);
    }