传递
re.IGNORECASE到
flags的PARAM
search,
match或
sub:
re.search('test', 'TeSt', re.IGNORECASE)re.match('test', 'TeSt', re.IGNORECASE)re.sub('test', 'xxxx', 'Testing', flags=re.IGNORECASE)
传递
re.IGNORECASE到
flags的PARAM
search,
match或
sub:
re.search('test', 'TeSt', re.IGNORECASE)re.match('test', 'TeSt', re.IGNORECASE)re.sub('test', 'xxxx', 'Testing', flags=re.IGNORECASE)