I have a thousands .txt files with a large text. I want to extract some information from these files, like some names, numbers and dates. There are fields that follow a pattern
Use the pattern ([^,]*) to match everything upto a comma
([^,]*)
>>> re.findall(r'\sante mí:\s+([^,]*)', mensaje) ['DANIEL ROLANDO CORNEJO GALLARDO']