I need to extract the public key in the shell script, Not sure how to use this. I am new to shell script. https://regex101.com/r/SXDEaU/1
Content of the file:
public_key=#STARTKEY#<public key base64 encoded>#ENDKEY#
Regex: /public_key=#STARTKEY#(.*)#ENDKEY#/s
Since the key is base64 encoded, it is a multiline string.
Desired output: <public key base64 encoded>