First time here? Check out the FAQ!
I have a document that will eventually be 100 pages and there is a unique piece of text at the beginning of each page. I would like to search for that text and replace it with a page break followed by the text. I am generating the document via another program so if I needed to place something that could be completely replaced by a page break I could also do that. The real question is how to put page breaks in the search and replace dialog.
answered 2012-06-27 14:27:07 +0200tohuwawohu
The problem is that page breaks are properties of the first paragraph on a page, so they aren't accessible for search & replace using regular expressions. In your case, a solution would be to assign a special paragraph style to all those "first paragraphs". AFAIK you can't do this using the built-in search and replace, but there's a LibreOffice Writer extension that allows for this (available for OpenOffice, too). Hope this works for you.
LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!
Asked: 2012-06-27 13:54:15 +0200
Seen: 1,550 times
Last updated: Jun 28 '12