Date: prev next · Thread: first prev next last
2020 Archives by date, by thread · List index


Documents archived in Project Gutenberg are typically simple text, with each line ending in <CR><LF> (Hex:0D0A), so that 
paragraphs are separated by an empty line <CR><LF><CR><LF>. I thought it would be simple to convert one such 
(5657.txt) to format in Writer, but stumbled on elementary problems in Find-&-Replace [Ctrl-H] using regular expressions:

        (1) "\n" is not found. Should not "\n" match one of the codes in <CR><LF>? [If not, what code(s) 
should "\n" match?]

        (2) Although "$" is found (matches to <CR><LF>), "$$" (for successive occurrences of 
<CR><LF>) is not found. Why?

        (3) Doing Find "$" & Replace with " " (single space), <CR><LF> is replaced by " " (single 
space). However,
            doing Find "$" & Replace with "@" (single @char), <CR><LF> is replaced by "@@" (double 
@char).  Why?

John

--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.