SHARE
TWEET

Untitled

a guest Aug 20th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Regex regex = new Regex(@"code=(S*)&state");
  2.  
  3. MatchesCollections matches = regex.Matches(decodeMessage);
  4.      
  5. var decodeMessage = "GET /?code=KYTW/9Bjv7m7OhrXmuZd50PuvRq5b4TVi3GIH5ZXOVl59XQL8yMAhuC2IqS7XIsxSQauZA" +
  6. "==&state= HTTP/1.1";
  7. var regex = new Regex(@"code=(S*)&state");
  8.  
  9. var matches = regex.Matches(decodeMessage);
  10. foreach (Match element in matches)
  11. {
  12.     Console.WriteLine(element.Groups[1].Value);
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top