Find and replace with page break characters
Is it possible to include a page break character in the replace part of a find and replace action?
For instance suppose I have a document containing a lot of items starting with the word "Wibble" and I want each item to start on a new page.
One obvious way would be to repalce all instances of "Wibble" with "[page break]Wibble".
Pretty sure I can do this in MS Word. Is it possible in Star Office 7?
--
Dave
[491 byte] By [
] at [2007-11-25 23:09:23]

# 1
<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td class="SmallText"><b>DaveH wrote on Sat, 26 November 2005 22:27</b></td></tr><tr><td class="quote">
Is it possible to include a page break character in the replace part of a find and replace action?
...
Pretty sure I can do this in MS Word. Is it possible in Star Office 7?
--
Dave
</td></tr></table>
This uses Regular Expressions, you know, but I see that Page-break is NOT listed (in the Help, among line-break and new para., etc.)!
This is another function to be requested urgently, therefore.
(I don't agree with the word 'feature' for such...)
at 2007-7-5 17:59:59 >

# 2
Use the Stylist to create a new paragraph style called "wib", modify this style on the Text Flow tab by checking the Insert box in the Breaks section.
Do a FindAll for "Wibble" and while all occurences remain highlighted apply the "wib" paragraph style.
at 2007-7-5 17:59:59 >

# 3
> Do a FindAll for "Wibble" and while all
> occurences remain highlighted apply the
> "wib" paragraph style.
Nice workaround JohnV, but I agree that adding Pagebreak to the regex list would be a very useful thing.
While at it, could we get a real Paragraph character in regex? Did you know that the \n (slash-n) means both shift-enter and enter? From the help file...
\n Represents a line break that was inserted with the Shift+Enter key combination. To change a line break into a paragraph break, enter \n in the Search for and Replace with boxes, and then perform a search and replace.
This actually bit me (hard) when I found it. Rant Off. Pagebreaks and Paragraphs in regex please!
JF