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
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
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: