I'm trying to find a way to replace all commas in csv file that occur between two double quotes with pipes using python.
Given such input:
abc,def,"ghi,jkl,mno",pqr,stu
I would like to get:
abc,def,"ghi|jkl|mno",pqr,stu
I have tried to use positive lookarounds with something similar to:
(?<=\")(this here should match every comma)(?=\")
but I can't get it to work. Any ideas?