How do I search for a pattern within a text file using Python combining regex & string/file operations and store instances of the pattern? How do I search for a pattern within a text file using Python combining regex & string/file operations and store instances of the pattern? python python