正则表达式,忽略大小写

import re

url = ‘abc.gif’

res = re.search('.*(.GIF$)', url, re.I)

猜你喜欢

转载自blog.csdn.net/qq_39457091/article/details/82144420
今日推荐