string result = Regex.Match(subjectString, @"token=(\w+)"";", RegexOptions.Singleline).Groups[1].Value;
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); }
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);
}