I'm trying to extract a Substring (in this case 'Danger Zone Case') but it returns an error:
>>> res = 'class=\\"market_listing_item_name\\" style=\\"color: #D2D2D2;\\">Danger Zone Case<\\/span>'
>>> item = re.search('market_listing_item_name\\.+?>(.+?)<', res).group(1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'group'
Although when I enter booth on https://regexr.com/ I get a match. What am I doing wrong?