def METHOD_NAME(self, sHtmlContent, sPattern):
    sHtmlContent = self.__replaceSpecialCharacters(str(sHtmlContent))
    aMatches = re.compile(sPattern, re.IGNORECASE)
    try:
        [m.groupdict() for m in aMatches.finditer(sHtmlContent)]
        return m.groupdict()
    except:
        return {'title': sHtmlContent}