I have a article which has around 1000 words. The article has not been split in mulitple paragraphs so I would like to split the document by a newline after every second occurance of a full stop .
.
Example
This is my first sentence. This is my second sentence. This is my third sentence. This is my fourth sentence.
I need to split AFTER every 2nd sentence as shown below:
This is my first sentence. This is my second sentence
This is my third sentence. This is my fourth sentence.
I would like to use Notepad
find and replace with regular expression
feature to achieve this.
CodePudding user response:
For your given sample try below code
Find; ^(.*?\K\. ){2}
Replace all: .\n\n