import res='The cat in the hat sat on the flat mat.'print(re.findall(r'\b[^\W\d_]at\b', s))
Standard input is empty
['cat', 'hat', 'sat', 'mat']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!