下列选项中,说法错误的是( )
A. match()函数从字符串开始位置检测
B. search()函数从字符串任意位置检测
C. findall()函数会以列表形式将匹配结果返回
D. finditer()函数会以列表形式将匹配结果返回
阅读下面代码:import restr_data = '90python _-2'reg = r'[A-Za-z_](\w|_)*'obj_pattern = re.compile(reg)match_res= re.search(obj_pattern, str_data)print(match_res.group())运行代码,正则表达式的匹配结果是( )
A. python
B. 90python
C. 90python _-2
D. _-2
下列函数中,用于文本分割的是( )
A. split()
B. sub()
C. subn()
D. compile()
Python中__________模块可以使用正则表达式。