import re
str1=‘aaaabbbbbcccc src="http://www.sssss.com/123.html" src="http://www.sss.com/456.jpg" pic_extaaaaaaaaaaa‘
restr=r‘.*src=\"(.*?.jpg)‘
ok=re.findall(restr,str1)
>>> ok
[‘
2022-04-11 04:18:01
import re
str1=‘aaaabbbbbcccc src="http://www.sssss.com/123.html" src="http://www.sss.com/456.jpg" pic_extaaaaaaaaaaa‘
restr=r‘.*src=\"(.*?.jpg)‘
ok=re.findall(restr,str1)
>>> ok
[‘