import re
text = '''https://img.alicdn.com/imgextra/i1/0/O1CN01G0nT901gaPTp8lu1O_!!0-rate.jpg_40x40.jpg'''
print(re.match('https.*?jpg',text))
用正则表达式匹配结果只有出来部分匹配内容,没有匹配到想要的位置。请各位大佬告知一下原因。谢谢。
<re.Match object; span=(0, 73), match='https://img.alicdn.com/imgextra/i1/0/O1CN01G0nT90>
Process finished with exit code 0