in reply to Re: Repairing bad CSV
in thread Repairing bad CSV

That mostly works. It will match \n at the end of the line. I also usually use not-matching group. This is what I ended up using:
s/(?:[^,])"(?:[^,\n])/""/g;