On Thu, 2006-03-02 at 16:06 +0200, Samuel Murray wrote:
> G'day everyone
> 
> I'm struggling with an OOo regex find/replace operation.  Basically, I 
> want to find this:
> 
> This is a house.
> 
> and replace with with this:
> 
> (<This is a house.>)=(<This is a house.>)
> 
> In which the original is the only text on the paragraph (in other words, 
> it follows and precedes a paragraphbreak).  At first I thought that I 
> would have to find:
> 
> ([paragraph mark])([all text])([paragraph mark])
> 
> and replace it with:
> 
> \1\\(<\2\>\)\=\(\<\2\>\)\3
> 
> but I can figure out what is the OOo regex character for a paragraph break.
> 
> Any ideas?
> 

Help is not the clearest on this in Help > Contents > Index > Search
term > regular expressions;list of

What it should say is what is in the user guide as follows:
"This symbol represents the paragraph mark for use in a regular
expression. For example, using $ will only find the search term if it
appears at the end of a paragraph. So, if one searches for, say, Peter
at the end of a paragraph, enter Peter$ in the Search for box. Special
characters (for example, blank spaces and character-anchored frames) at
the end of a paragraph are ignored."


-- 
PLEASE KEEP MESSAGES ON THE LIST.
OpenOffice.org Documentation Co-Lead
http://documentation.openoffice.org/ 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to