the-honk/python/pythonchallenge.com/3 - Equality.py
2024-10-09 18:02:48 +01:00

5 lines
No EOL
140 B
Python

import re
data = open('equality.txt'.format(dir)).read()
matches = re.findall('[^A-Z]+[A-Z]{3}([a-z])[A-Z]{3}[^A-Z]+', data)
print(matches)