面试题答案一键面试import re string = 'hello world, this is a test string' matches = re.findall(r'\bh\S*g\b', string) print(matches)