Regular Expressions 101

Community Patterns

Oauth2 client token matcher

0

Regular Expression
Java 8

"
(?<!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 - a year ago