Pardon me, before you let this post go off.. i want one small help…
"Order","Id","Comment"
"6","12321","3rd test"
There is a carriage return at the end of 2nd line. plus carriage returns for every row in my grid. How can i replace that carriage return with a comma ?
i tried using regex but it didnt work. here is the code i tried using.
data= data.replace(/\r/g,',');
Instead of replacing carriage return (\r) with a comma (,) – it is giving me an error
It says:
Uncaught SyntaxError: Invalid regular expression: missing /