Hi All,
I want to replace the commas which are not inside parenthesis,quotes
if input is
abc,[def,ghi,ijk],lm,(no,pq,rs),{tu,vw,xy},zs,"as,as,fr",'ab,cd,ef'
output should be
abc [def,ghi,ijk] lm (no,pq,rs) {tu,vw,xy} zs "as,as,fr" 'ab,cd,ef'
I tried this str.replaceAll("\\(.*?\\)|(,)", " "); say my string is str, it will replace commas which are not inside ( ) but output will not have content inside ( )
Any help is highly appreciated
Thanks,
Pre