curl请求一个网站后,获取他的header信息如下
HTTP/1.1 302 Found Cache-Control: private Content-Type: text/html; charset=utf-8 Location: http://www.puritanspride.com.cn Server: Microsoft-IIS/7.5 Set-Cookie: ASP.NET_SessionId=pdfxxpyuhguhzndymx4zbzyn; path=/; HttpOnly X-AspNetMvc-Version: 5.2 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET BOH: 04 X-Frame-Options: SAMEORIGIN Date: Fri, 07 Dec 2018 03:17:23 GMT Content-Length: 21009 Referrer-Policy: no-referrer-when-downgrade Strict-Transport-Security: max-age=31536000; includeSubDomains X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block Vary: Accept-Encoding
可能信息中有多个Location。想取最后一个Location的值,这样的正则匹配应该如何去写呢?