import re
#匹配可以有多组结果
pattern = '.*abc' string = 'helloabc' rs = re.match(pattern,string)
print(rs.group(rs))