@ Joshua,
Well, if you look at the csv produced by Excel, as Helpy rightly says, you'll find fields containg commas are enclosed in quotes.
This can of course be used to our advantage. So while no-one has yet popped out of the woodwork with a ReGex solution, we'll use old fashioned methods
Sample csv generated by excel:
123,"one,two",5897,"john,doe",999,
5235,"four,five,six",2567,"fred,the,bear",277,183
32,"one,two,three,four","ted,smith",56,,
Code:
Loop, Read,YourExcelData.Csv
{
Loop,Parse,A_LoopReadLine,% chr(34)
{
StringReplace,Var1,A_LoopField,% Chr(44),% Chr(32),1
L .= Var1 ","
}
Z .= L "`n"
L := ""
}
FileAppend,% z ,Converted.Csv
MsgBox File Converted !
output file:
123 ,one two, 5897 ,john doe, 999 ,
5235 ,four five six, 2567 ,fred the bear, 277 ,183,
32 ,one two three four, ,ted smith, 56 ,
Have Fun.