import re

with open("nlp.txt") as f:
    sentence = f.read().replace('\n', '')
#print(sentence)

# m = re.findall(r'\s(.*?[.;:?!])\s[A-Z]', sentence, re.M)
m = re.sub(r'([^.;:?!]*?[.;:?!])\s([A-Z])', r'\1\n\2' , sentence)
print(m)
# for x in m:
#     print(x) # sol 50

ebfcc4f59c8a402bdd2a4d4ece390ead7145e8f8
<mask token>

<mask token>
with open('nlp.txt') as f:
    sentence = f.read().replace('\n', '')
<mask token>
print(m)

<mask token>
with open('nlp.txt') as f:
    sentence = f.read().replace('\n', '')
m = re.sub('([^.;:?!]*?[.;:?!])\\s([A-Z])', '\\1\\n\\2', sentence)
print(m)

import re
with open('nlp.txt') as f:
    sentence = f.read().replace('\n', '')
m = re.sub('([^.;:?!]*?[.;:?!])\\s([A-Z])', '\\1\\n\\2', sentence)
print(m)

import re

with open("nlp.txt") as f:
    sentence = f.read().replace('\n', '')
#print(sentence)

# m = re.findall(r'\s(.*?[.;:?!])\s[A-Z]', sentence, re.M)
m = re.sub(r'([^.;:?!]*?[.;:?!])\s([A-Z])', r'\1\n\2' , sentence)
print(m)
# for x in m:
#     print(x) # sol 50
