I have this xml which could have nested double quotes (not escaped) inside attributes:
<test>
<tag1 att1="This has "nested double quotes"">
<tag2 att2="This also has a nested " double quotes"></tag2>
</tag1>
</test>
I need to find a regex which will select all the nested double quotes, in this case
"
nested double quotes"
- nested
"
double
and replace them with the "
character. The final xml should be like the following:
<test>
<tag1 att1="This has "nested double quotes"">
<tag2 att2="This also has a nested " double quotes"></tag2>
</tag1>
</test>
Is it possible to achieve this using regex?