In CSV file that export from mysql, a few data has linebreak
This
is
Sunday
into
This is Sunday
How do I replace those linebreak into "\n" character which I can parse at later time. It seem the code below does not replace correcly. Parse
result = result.replace(/[\\r\\n]/g, "\\n");
Next, to split into array
var splitRegExp:RegExp = /\r*\n+|\n*\r+/gm;
var lines:Array = result.split(splitRegExp);