I have the following string:
s = '''
<a class="biz-name"><span>Gus’s World Famous Fried Chicken</span></a>
<a class="biz-name"><span>South City Kitchen - Midtown</span></a>
'''
I am trying to match both groups between the <span>
s
using the following
regex = re.compile('<a class="biz-name[\w\W]*<span>(.*)</span>')
regex.findall(s)
expected:
['Gus’s World Famous Fried Chicken', 'South City Kitchen - Midtown']
actual
['South City Kitchen - Midtown']
Why is only the last occurrence being matched?