[issue34859] python core in string substring search

2018-10-01 Thread pashkasan
pashkasan added the comment: str2 = open('sample.txt', 'rU').read() if "\n" in str2: print ("\\n found") else: print ("\\n not found") if "\r" in str2: print ("\\r found") else: print (&qu

[issue34859] python core in string substring search

2018-10-01 Thread pashkasan
pashkasan added the comment: >I suspect that there may also be confusion about the line ending in multiline >strings. Is there any documentation on the fact that this is always "\n" and >not "\r\n" (even on Windows)? the problem is that "\r\n" no

[issue34859] python core in string substring search

2018-09-30 Thread pashkasan
New submission from pashkasan : find substring in string its correct behavior? sample code str = """ Content-Length: 3192 Connection: close Cookie: _secure_admin_session_id=2a5dc26329de17ca4eafe; -1477319126846 Content-Disposition: