All pastes #2134544 Raw Edit

Mine

public python v1 · immutable
#2134544 ·published 2012-04-01 16:38 UTC
rendered paste body
from HTMLParser import HTMLParserimport rer = re.compile('<title>(.*?)</title>', re.DOTALL)htmlstring = """some<title>strong containinghtml</title>"""title = r.findall(htmlstring)title = HTMLParser().replace(title)