Regular Expressions 101

Oauth2 client token matcher

Open Workspace
  • Java
  • Match
0

Regular Expression

"
(?<!refresh.)token(?!.type)\":\"(.*?)\"
"
gm

Description

Grep the token value for almost any JSON response containing an oauth2 token as describe in rfc6749

Submitted by Pharaphara