In Atom, If I activate regex mode on the search-and-replace tool, it can find newlines as \\n
, but when I try to replace them, they\'re still there.
Is th
Looks like Atom matches newlines as \r\n
but behaves inconsistently when replacing just the \n
with nothing.
So newlines seem to match \s+
and \r\n
, and only "half" of the line-ending matches \n
.
\n
with a string, nothing happens to the line-ending, but the string is appended to the next line\r
with a string, nothing happens at all, but the cursor advances.