textfile.close()
matches = re.findall('(<(\\d{4,5})>)?', filetext)
How do I search for a pattern within a text file using Python combining regex & string/file operations and store instances of the pattern?