Re: [Tutor] Value Error solved. Another question

2005-02-14 Thread Kent Johnson
Ron Nixon wrote: Ignore my first posting. Here's what I'm trying to do. I want to extract headlines from a newspaper's website using this code. It works, but I want to match the second group in (.*) and print that out. Sugguestions import urllib, re pattern = re.compile(""" href="(.*)">(.*)""", re.

[Tutor] Value Error solved. Another question

2005-02-13 Thread Ron Nixon
Ignore my first posting. Here's what I'm trying to do. I want to extract headlines from a newspaper's website using this code. It works, but I want to match the second group in (.*) and print that out. Sugguestions import urllib, re pattern = re.compile("""(.*)""", re.DOTALL) page = urllib.urlope