I need to be able to match and mask properties in a json string that is represented as a quote escaped string.
I have come up with the following regex, (?<="transactionId\\":\\".*)\w
but it seems to match all instances after the initial match. my intention is to only match the value for transactionId
.
{
"Type": "Notification",
"MessageId": "a2d65e5b-5c7b-5b89-9bce-07539ead41fa",
"Message": "{\"context\":{\"transactionId\":\"93236388\",\"orderOriginId\":\"xxx-xxx\",\"sector\":\"xxx\",\"storeId\":\"xxx\"}
}