import re x=re.findall(r'\bf[a-z]*', 'which foot or hand fell fastest') print(x) 转载于:https://www.cnblogs.com/sea-stream/p/10003721.html