js regex Encontre novas linhas

`Text with newlines
another line
yet another
`.match(/[\n\r]/g);
KostasX