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


Piet van Oostrum wrote:

As far as I know, steps 4 and 6 cannot be done with the regular find and replace as you can't 
specify a paragraph mark in the replace. At least i don't know how to.

Well, in the meantime I found that \n in the Replace field with the regular Find and Replace 
represents a paragraph break. In the Search For field $ should be used. The recipe with the regular 
Find and Replace then becomes:
(all Find/replace with "Regular expressions"" ticked):

1. Choose two characters that do not appear in your text. I chose # an §.
2. Mark every song title, except the first one, with # at the beginning of the line.
3. Find & replace:
   Search For: $
   Replace With: §
   Replace all
4. Find & Replace:
   Search for: §#
   Replace With: \n
5. Select all text and then Tools > Sort.
6. Find & Replace:
   Search for: §
   Replace with: \n
-- 
Piet van Oostrum <piet@vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]


-- 
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

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.