At 20:24 06/10/2012 -0400, Dan Lewis wrote:
On 10/06/2012 05:09 PM, Cor Nouws wrote:
I was trying to use \t to replace e.g a paragraph ending with a
tab. So find $ replace with \t That does not work.
At first I did not understand what you meant since paragraphs always
end with paragraph breaks.
The questioner presumably wants to merge existing paragraphs:
removing paragraph breaks and replacing them by tab characters.
Here is what I was able to do: In the search box, I entered .$
(period followed by the dollar sign). This searches paragraphs that
end with a period.
Sorry, but that's not so. If "Regular expressions" is not ticked,
then .$ matches exactly that: a dot followed by a dollar sign -
nothing about paragraph breaks. If "Regular expressions" is ticked,
then .$ matches any single character but only if it occurs at the end
of a paragraph. But note in this latter case that the expression
matches only that single character, without including the paragraph
break itself. So any replacement replaces the single character but
leaves the paragraph break as it was.
The $ sign anchors any search to the end of a paragraph, but does not
match the paragraph break itself, which - in the view of
LibreOffice's regular expressions - does not exist as a separate
entity. There is no simple way to match and replace paragraph
breaks, I think. (You can match and replace Shift+Enter line breaks
- using \n.)
I trust this helps.
Brian Barker
--
For unsubscribe instructions 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