I am trying to replace consecuitive paragraph markers with zzz and then remove single paragraph markers, and replace zzz with a single paragraph marker. /n/n gets “string not found” msg.
The list of regular expressions, List of Regular Expressions , shows that $ on its own matches the end of a paragraph. Therefore
- Select the text if you want to limit the search
- Open Find & Replace and expand Options
- Tick the box Regular Expressions
- Tick Current Selection if needed
- In Find enter
$ - In Replace enter
zzzor some special character - Replace All
Maybe you just want replace empty paragraphs? In that case using regular expressions
- In Find enter
^$ - In Replace enter nothing
Well, after messing around with this, I broke down and reinstalled Word. ^p did the trick.
Using Regular Expressions in Text Searches states :
A search using a regular expression will work only within one paragraph. That is, a \n will match a line break within a paragraph.
so …