import refrom urllib import urlopenwebpage = urlopen('http://www.python.org')text = webpage.read()m = re.search('Tutorial', text, re.IGNORECASE)print m.group(1)