I have a interesting problem. I am trying to add a paragraph after every existing paragraph except if the line contains a bracket. Is there a way to do that?
I know if I search for $ with a replace of \n it will add paragraph another paragraph after every line but I want it to skip any time that there is a bracket in that line. I assume that is possible?
Adding a paragaph after every paragraph
Adding a paragaph after every paragraph
Openoffice 2.1 on Windows 2000
Re: adding a paragaph after every paragraph
Use two passes: 1) search for paragraphs that don't contain a bracket, then 2) add the paragraphs ONLY to the matching paragraphs.
1:
Edit > Find & Replace
Search for: ^[^{}]*$
Options/Regular expressions: ON
Click Find All
2:
Search for: $
Replace with: \n
Options/Current selection only: ON
Options/Regular expressions: ON
Click Replace All
1:
Edit > Find & Replace
Search for: ^[^{}]*$
Options/Regular expressions: ON
Click Find All
2:
Search for: $
Replace with: \n
Options/Current selection only: ON
Options/Regular expressions: ON
Click Replace All
AOO4/LO5 • Linux • Fedora 23