import re
st = 'asdfasxxixxdafqewxxlovexxsadawexxyouxxas'
# .
#点匹配除换行符外的任意字符
a0 = re.findall('xx.',st)
#print(a0)
#['xxi', 'xxd', 'xxl', 'xxs', 'xxy', 'xxa']
a1 = re.findall('xx..',st)
#print(a1)
#['xxix', 'xxlo', 'xxsa', 'xxyo', 'xxas']
# *
#星匹配前面的一个字符一次或多次
b0 = re.findall('x*',st)
#print(b0)
#['', '', '', '', '', '', 'xx', '', 'xx', '', '', '', '', '', '', 'xx', '', '', '', '', 'xx', '', '', '', '', '', '', 'xx', '', '', '', 'xx', '', '', '']
# ?
#问号匹配前面的一个字符0次或者1次
c0 = re.findall('x?',st)
#print(c0)
#['', '', '', ''