regex - How do I replace a newline in Atom? -
in atom, if activate regex mode on search-and-replace tool, can find newlines \n, when try replace them, they're still there.
is there no way replace newline-spanning string in atom?
looks atom matches newlines \r\n behaves inconsistently when replacing \n nothing.
so newlines seem match \s+ , \r\n, , "half" of line-ending matches \n.
- if replace
\nstring, nothing happens line-ending, string appended next line - if replace
\rstring, nothing happens @ all, cursor advances.
Comments
Post a Comment