regex js Найти новые линии
`Text with newlines
another line
yet another
`.match(/[\n\r]/g);
KostasX
`Text with newlines
another line
yet another
`.match(/[\n\r]/g);