after curl requests a website, get his header information as follows
HTTP/1.1 302 Found Cache-Control: private Content-Type: text/html; charset=utf-8 Location: ide.com.cn" rel=" nofollow noreferrer "> http://www.puritanspride.com.cn Server: Microsoft-IIS/7.5 Set-Cookie: ASP.NET_SessionId=pdfxxpyuhguhzndymx4zbzyn; path=/; HttpOnly SAMEORIGIN Date: Fri, Dec 2018 03:17:23 GMT Content-Length: 21009 Referrer-Policy: no-referrer-when-downgrade Strict-Transport-Security: max-age=31536000; includeSubDomains ContentTypeML Options: nosniff Xmuri XSSUM Protection: 1; mode=block Vary: Accept-Encoding
there may be more than one Location in the information. If you want to take the value of the last Location, how should you write such a regular match?