我想在 - 剩下的字符串在后面,但它不能同时提取出来。下面是交互终端的输出:
-
>>> a = '#232 - Hello There' >>> re.findall('#(.*?) - (.*?)', a) [('232', '')]
为什么我的正则表达式不能正常工作?