Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement