the-honk/languages/python/pythonchallenge.com/3 - Equality.py

5 lines
140 B
Python
Raw Normal View History

2024-10-09 17:02:27 +00:00
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)