SyntaxFix
Write A Post
Hire A Developer
Questions
Try using capturing groups:
title = re.search('<title>(.*)</title>', html, re.IGNORECASE).group(1)