Pattern = re.compile('.*', re.DOTALL)
Pattern.findall('Serve the public trust.\nProtect the innocent.\nUphold the law.')
It returns an extra blank string in the end.
Output = ['Serve the public trust.\nProtect the innocent.\nUphold the law.', '']
How can I prevent this?