import reprint [x.group(1) for x in re.finditer(r"\b([a-zA-Z]+)d\b","dord word")]
Standard input is empty
['dor', 'wor']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!