I am trying to run this regex in c#:
\{\"secret\":\"(.*?)\",\"encrypted":\"(.*?)\"\}
This is what I am trying to match:
{"secret":"xxx","encrypted":"xxxgggxxx"}
Because it needs to be further escaped in c# I tried following:
var test = Regex.Match(html, "\\{\\\"secret\\\":\\\"(.*?)\\\",\\\"encrypted\\\":\\\"(.*?)\\\"\\}");
But it gives me 0 matches. What is the correct way to escape the quotes and curly braces? I have tested the regex in an online tester it should work.