How to parse using headerRegex?

BTW, I tried check(header(“Location”).saveAs(“locationData”))

Even that does not work.

Why would you want to do that as Gatling both follows redirects and handles cookies?!