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: [email protected]
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