开发者

python: Regex matching file extension

开发者 https://www.devze.com 2022-12-20 04:12 出处:网络
hi i am trying to get the extension of the file called in a url (eg /wp-includes/js/jquery/jquery.js?ver=1.3.2 HTTP/1.1) and get the query parameters passed to the file too.

hi i am trying to get the extension of the file called in a url (eg /wp-includes/js/jquery/jquery.js?ver=1.3.2 HTTP/1.1) and get the query parameters passed to the file too.

What would be the best way to the 开发者_如何转开发extension?


urlparse.urlparse() and os.path.splitext().

0

精彩评论

暂无评论...
验证码 换一张
取 消