regex ?

Chris Dutton cmbchris at mac.com
Thu Jan 10 14:09:46 EST 2002


in article 3c34bcc9$0$79560$6e49188b at news.goldengate.net, Greg Krohn at
infinitystwin.SPAM at IS.BAD.yahoo.com wrote on 1/3/02 3:23 PM:

> pat = re.compile(r"<title>(.*)</title>", re.I)

Or just in case somebody puts two set of titles in one document, for
whatever reason...

pat = re.compile(r"<title>([^</title>]+)</title>", re.I)




More information about the Python-list mailing list