import urllib2
import re
response = urllib2.urlopen('http://www.baidu.com/')
text = 'JGood is<title>sdfa</title> a handsome <title> boy, </title>he is cool, clever, and so on...'
text2 = text.replace('y','')
#m = re.search(r'<title>(.*)<\/title>',response.read())
#m = re.match(r'.*<title>(.*)<\/title>.*',response.read())
#m = re.match(r'.*<title>(.*)<\/title>.*',text2)
m = re.search(r'<title>(.*)<\/title>',text2)