<td>Уровень: </td><td style="font-weight:bold "><span style="color: #000e71">25</span></td><span style="color: #000e71">25</span></td>
Заранее спасибо.
<td>Уровень: </td><td style="font-weight:bold "><span style="color: #000e71">25</span></td><span style="color: #000e71">25</span></td>
>>> import re >>> >>> s = """<td>Уровень: </td><td style="font-weight:bold "><span style="color: #000e71">25</span></td><span style="color: #000e71">25</span></td>""" >>> >>> pat = re.compile("""<span style="color: #[0-9a-zA-Z]{1,6}">25</span>""") >>> >>> pat.findall(s) ['<span style="color: #000e71">25</span>', '<span style="color: #000e71">25</span>'] >>>