I need the regex expression gives to me the word before the : and all until a . The right output will be
['Socios: Norberto Alejandro PERONACE, 16/8/1973', 'Joaquin: jaja']
Here is my code:
text = "Esc. 7, Fº 10, 14/1/2019, Esc. M. Paula Corallo, Reg. 1525, Socios: Norberto Alejandro PERONACE, 16/8/1973. Joaquin: jaja."
if re.findall(r":", text):
print(re.findall(r"\w+: \w+.\Z", text))
else:
print("Match not found")