I have a string like below
{A:'XYZ'|B:‘123'}.[{C:‘pqr'}.{p:'a'}].{I1:'t123'|I2:'345'}
I want to remove all the characters between ' and ' and want a final result like
{A:|B:}.[{C:}.{p:}].{I1:|I2:}
I am using the regx like below
input.replaceAll("'.*?'", "");
But unable to get the desired result. Can someone point out what am I missing here ?