Frank Wunderlich wrote:
Von: Alphax <[EMAIL PROTECTED]>
Ervin Peters wrote:
> Isn't using 'Search & Replace' with regex and '\n' an easy way to do it?

I've found that you need to disable regex and enable "transform
backslash expressions", and it helps to turn line endings on
(ctrl+shift+9) so you can see if the line endings are CRs, LFs or a mix
of both. Best to do '\r' and '\n' if you want to be certain.

I've tried both solutions but \n is not found, i have created a simple
textfile with 4 lines and windows-line-breaks (CRLF, \r\n). they will be
displayed if i show line-end-characters.

i tried also to mark all and search in selection. but \n wasn't found.

The Lua solution is nice and versatile, but really, the fastest solution is to check "transform backslash expression", uncheck "Regular expression", ensure the line ends are consistent (transform them before if needed) and replace these \r and \n with nothing or space.

It should work, if not, you should report the problem indicating what is your platform, etc.

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to