Page 1 of 1
[Solved] Another Search and Replace question
Posted: Wed Dec 19, 2007 10:58 am
by annice
Thanks to Hagar de l'Est, I now know to enter the $ symbol for a paragraph mark. I am having another Find and Replace problem. Basically, the macro I want to record finds an empty paragraph (^$) and replaces it with any unused character -- I'm using `. Then I replace all paragraph marks with a space. So far, so good. The last step is to take that ` character and replace it with a paragraph mark. So I put the ` in the Find box and $ in the Replace box. Unfortunately it replaces not with the paragraph mark, but with an actual dollar sign. What am I missing here?
Annice
Re: Another Search and Replace question
Posted: Wed Dec 19, 2007 11:35 am
by esperantisto
Just put nothing into the replace box if you want to have an empty paragraph or put \n to add extra new lines. $ works as a regexp only in the find field.
Re: Another Search and Replace question
Posted: Wed Dec 19, 2007 12:58 pm
by annice
Thanks. I think I have things working the way I want now. I'm sure I'll come up with other questions as I continue working with Writer. The support of this group is great!
Annice
Re: Another Search and Replace question [Solved]
Posted: Wed Dec 19, 2007 1:48 pm
by floris v
One hint though: At present OOo can't handle paragraphs longer than 64 K. So if you have a long document, larger than 64 K characters, and you remove the internal paragraph markers, you get one paragraph exceeding that size, resulting in data loss.
