0
Bu ok arandıPython regexp'in n sorunu
>>> re.search(r'(.*?)\r\n(.+?)\r\n', 'aaa\r\r\nb\nc\r\n').groups()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'groups'
Ama ikinci durumda ayrıştırmak istiyorum:
('aaa\r', 'b\nc')
teşekkürler! Evet, varsayılan olarak "n" ile eşleşmedi – user3479125