I have following string returned from an HTTP request
"keyverified=yes connected=no now=1347429501 debug=Not connected and no params";
Now i want to extract different key value combinations using regex. I have tried like
var regString = @"keyverified=([a-zA-Z0-9]+)";
var regex = new Regex(regString, RegexOptions.Singleline);
var match = regex.Match(str);
foreach (Group group in match.Groups)
{
Console.WriteLine(group.Value);
}
For keyverified and connected it works ok and give me respective values but when I change the regString to @"debug=([a-zA-Z0-9]+)" it only gives me the first word i.e Not. I want to extract the whole value like Not connected and no params. How would I do that?