fork download
  1. import re
  2.  
  3. test = """{"info":{"keyVersion":1,"timestamp":"2020-11-05 20:00:00","encryptedData":"75657374696f6e732068617665207265636569"},"mac":"4d6163204b65792049732048455245"}"""
  4. print(*re.findall(r"(?<=info\":).*(?=,\"mac\")", test))
  5.  
Success #stdin #stdout 0.03s 9572KB
stdin
Standard input is empty
stdout
{"keyVersion":1,"timestamp":"2020-11-05 20:00:00","encryptedData":"75657374696f6e732068617665207265636569"}