python: Regex matching file extension
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()
.
精彩评论