I'm having an issue capturing a repeating group in regex, I have following text in log file and I want to add "\" (backslash) to '"'(semicolon) values so the Json becomes valid
So far I am able to extract the following value with regx "key1":{(.),(.)}
"key1":{ "v1":"M.V. "1002 xyz" V.089E", "v2":"M.V. "tr34 abc" V.089E" }
Which gives me 2 splits of
"v1":"M.V. "1002 xyz" V.089E"
"v2":"M.V. "tr34 abc" V.089E"
But since I do not know howmay key-value pairs will be inside key1's value I cannot use "key1":{(.),(.)} as there could potentially be a v3, v4 etc How can I make use of repeating groups to get all the separate splits for keys inside the Json Thanks you