4 ms·
Yes, breaking it up would work, but that is not a solution for streams. The regex is dead simple: /Authorization: Basic (.*)\ngrant_type=refresh_token/ "." doe
by buzzdenver 3y ago
Yes, breaking it up would work, but that is not a solution for streams.
The regex is dead simple: /Authorization: Basic (.*)\ngrant_type=refresh_token/
"." does not match newline, so I'm basically looking two lines that conform to a template.
Specific cases can be transformed with some grep/awk magic, but IMO the concept of pattern matching against a stream is interesting regardless.
- zaktoo2 3y agoI missed the part where it was a stream. Also, is the grant_type guaranteed to be immediately after the token?