re.match(r"hello", "hello, world")
--------------------------------------------
re.match(r"[hH]ello", "hello, world")
--------------------------------------------
ret = re.match(r"速度与激情\d", "速度与激情8)
ret.group()
速度与激情8
--------------------------------------------
re.match(r"速度与激情【123678】", "速度与激情2").group
re.match(r"速度与激情【1-36-8】", "速度与激情2").group
re,match(r"速度与激情【1-8abcd】", "速度与激情2").group
re.match(r"速度与激情【1-8】", "速度与激情2").group
'速度与激情2'
re.match(r"速度与激情【1-8a-zA-Z】", "速度与激情e").group
[]:只匹配一个
re.match(r"速度与激情\w", "速度与激情e").group
\w: 小写大写数字下划线 支持中文 慎用
\s : 空白字符 tab键
\D : \d的相反
\W :\w的相反
. : 匹配任何”一个“字符