On Nov 12, 10:04 pm, Gilles Ganault <[EMAIL PROTECTED]> wrote:
> Hello
>
> I'm stuck at understanding why Python can't extract some bit from an
> HTML file using regexes, although I can find it just fine with
> UltraEdit.
>
> I wonder if Python rewrites CRLFs when reading a text file with
> open/read?

Don't wonder; do some very elementary debugging and find out for
yourself.

> Here's the code:
> ==========
> f = open("content.html", "r")
> content = f.read()
> f.close()

Consider inserting
   print repr(content)
here.

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to