I have an input string:
access_token=f34b46f0f109d423sd4236af12d1bce7f10df108ec2183046b8f94641ebe&expires_in=0&user_id=37917395
Source code:
Regex regex = new Regex("access_token=([^&]+)");
MatchCollection matches;
matches = regex.Matches(webBrowser1.SaveToString());
if (matches.Count != 0 || access_token != string.Empty) {
webBrowser1.IsEnabled = false;
webBrowser1.IsHitTestVisible = false;
if (access_token == string.Empty)
access_token = matches[0].Value.Substring(13);
I get the access token but I also have to match the user_id. How can I get it?
Please help me, I'm not good at this.
user_idalso?