<?php $csvFileOld = "pre text appears here....,\"\"key\n\n words\r\n appear\r\n here\"\",....post text appears here"; //line break always appears between the final 2 quotation marks $csvFileNew = preg_replace_callback('`,""(.*?)",`s', function($matches) { return str_replace(array("\r", "\n"), '', $matches[1]); },$csvFileOld); echo $csvFileNew;
You have javascript disabled. You will not be able to edit any code.