i have a string like this(CSV file)
"ASD,asd",asd,asd
i want to replace all the , within double quotes to ##, ie it must become:
"ASD##asd",asd,asd
i wrote a regex for it:
$line=preg_replace("/\"(.*)\"/U","\"str_replace(',','##','\\1')\"",$line);
why is str_replace not working?
Known is handfull, Unknown is worldfull
"ASD,asd",asd,asd
i want to replace all the , within double quotes to ##, ie it must become:
"ASD##asd",asd,asd
i wrote a regex for it:
$line=preg_replace("/\"(.*)\"/U","\"str_replace(',','##','\\1')\"",$line);
why is str_replace not working?
Known is handfull, Unknown is worldfull