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 <[email protected]>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]


-- 
To unsubscribe e-mail to: [email protected]
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

Reply via email to