i have this Regex (?=(?:(?:[^']*'){2})*[^']*$)\\\\n working on online test website perfectly but not in Below code. i have a string with multiple \n and also some with in " double Quotation but i want to ignore all \n with in " double Quotes.
let input = "a,b,c\n'aa\nbb\ncc'\nhello world";
const lines = input.split("(?=(?:(?:[^']*'){2})*[^']*$)\\\\n");
console.log(lines);
want this Output:
[0]: "a,b,c"
[1]: "aa\nbb\ncc"
[2]: "hello world"
