代码示例:(标识:python_regex_meta_3)
python_regex_meta_3.py
import re

str = "hello world"

#Search for a sequence that starts with "he", followed by two (any) characters, and an "o":

x = re.findall("he..o", str)
print(x)
运行结果: