Community Patterns

Community Library Entry

0

Regular Expression
Created·2016-11-09 20:47
Flavor·PCRE (Legacy)

/
(?<=\"access_token\":\s\")[^\"]*
/
g
Open regex in editor

Description

Grep the access_token from response returned by bitbucket's oauth access_token endpoint. For example:

curl -s https://bitbucket.org/site/oauth2/access_token -d grant_type=client_credentials -u KEY:SECRET
Submitted by anonymous