Page 1 of 1

Adding a paragaph after every paragraph

PostPosted: Thu Oct 29, 2015 2:47 am
by DBDigital
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?

Re: adding a paragaph after every paragraph

PostPosted: Thu Oct 29, 2015 4:02 am
by acknak
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