In my script I replaced all "," commas with quotation+spaces.
But when it comes to numbers which are like 3,456,778
, it also converts the commas to quote+space. Is there any way to add to command to ignore big numbers like that so it doesn't convert it to:
3" 456" 778"
If there is quotationm+space+any number then convert quotation+space to comma.. I mean i know how to do it with str_replace
command but i dont know how to select anynumber 0-9
.
Any help to do it? To convert it to:
3,456,778
I think i need to elaborate some. I needed convert this text:
Value=3,456,778,id=777
To:
Value=3,456,778" id=777"
But problem is it also convert those middle commas in between numbers.
So even if I can change my str_replace
command to this like
"If comma is not in between two numbers then only convert comma to quotation+space". It would be good. Is it possible?