Create: Update:
Что выведет код?
import re
s = "<span>1</span><b>2</b>"
p1 = re.compile(r"(<\w+>.*</\w+>)")
p2 = re.compile(r"(<\w+>.*?</\w+>)")
x1 = p1.findall(s)
x2 = p2.findall(s)
print(len(x1), len(x2))
>>Click here to continue<<
Machinelearning tests