Re: help with find and replace

Евгений Михайлов <[email protected]> Tue, 31 May 2011 11:55:36 +0400
Newsgroups gmane.comp.openoffice.general
Message-ID <[email protected]>
Here's what I have found in OOo Wiki <http://wiki.services.openoffice.org>:

"Users are sometimes confused with what can be done using the 'Replace with'
box in a Find & Replace dialog.

In general, regular expressions do not
work<http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Regular_Expressions_in_Writer#The_.27Replace_with.27_box_.5Ct_.5Cn_.26_.241_.242>in
the 'Replace with' box. The characters you type replace the found text
literally…

\n inserts a paragraph mark, replacing the text found. This may be
unexpected, because \n in the 'Search for' box means 'newline'! In some
operating systems it is possible to use unicode input to directly type a
newline character (U+000A) in the 'Replace with' box, providing a
workaround, but this is not universal."

> Use regular expressions.
>
> Search character: \n
> Replace character: \n
>
> Weird, no?
-- 
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help