import re
s = 'dsdfsdank11img src="http://img.mmjpg.com/small/2017/1066.jpgfhttp://img.mmjpg.com/small/2017/1072.jpgsdfsdadfgfjpg.commjpg.com/sma'
pat = r'http://.+?\.jpg'
res = re.findall(pat,s)
print(res)
print(len(res))

3aa94056795ce4ed2b8b19a058c15f1cccbdc6c6
<mask token>

<mask token>
print(res)
print(len(res))

<mask token>
s = (
    'dsdfsdank11img src="http://img.mmjpg.com/small/2017/1066.jpgfhttp://img.mmjpg.com/small/2017/1072.jpgsdfsdadfgfjpg.commjpg.com/sma'
    )
pat = 'http://.+?\\.jpg'
res = re.findall(pat, s)
print(res)
print(len(res))

import re
s = (
    'dsdfsdank11img src="http://img.mmjpg.com/small/2017/1066.jpgfhttp://img.mmjpg.com/small/2017/1072.jpgsdfsdadfgfjpg.commjpg.com/sma'
    )
pat = 'http://.+?\\.jpg'
res = re.findall(pat, s)
print(res)
print(len(res))

import re
s = 'dsdfsdank11img src="http://img.mmjpg.com/small/2017/1066.jpgfhttp://img.mmjpg.com/small/2017/1072.jpgsdfsdadfgfjpg.commjpg.com/sma'
pat = r'http://.+?\.jpg'
res = re.findall(pat,s)
print(res)
print(len(res))
