05:44 · May 16, 2023 · Tue ❓ #问题求助【Python3.9.13 正则问题】请问\d+在字符串尾端为何会产生不同的匹配https://meta.appinn.net/t/topic/43691 小众软件官方论坛 【Python3.9.13 正则问题】请问\d+在字符串尾端为何会产生不同的匹配 s = “hello123world456www7.89你好001” Match1 match = re.findall(r'\d+(\D+)', s) ['world', 'www', '.', '你好'] Match2 match = re.findall(r'\d+(\D+)\d+', s) ['world', '.'] Match3 match = re.findall(r'\d+(\D+)\d', s) ['world', 'www', '你好'] 请问各位大大为啥…