I have a JSON configuration file I'm trying to extract values from via the following grep command:
grep -oP '"private_key": "\K[^\"]*' config.json
As you can see, I have working regex, however the \K syntax is not supported in older versions of Regex. For example, if you switch the flavor to Python or ECMAscript, the regex no longer works. I'm wondering if there's some other syntax to achieve the same result.
https://regex101.com/r/jfGwNT/1
Also, if anyone can think of a better name for this question, please let me know!