Extract 'token' from HTML Javascript tag

I want to extract ‘token’ value from below HTML Head,
I tried below ‘checks’ but didn’t worked, can anybody help me out here?

.check(regex(""“var static_token = ‘(.*)’”"").saveAs(“Authtoken”)))

.check(regex(""“static_token=([^’]*)”"").saveAs(“Authtoken”)))

Sorry for spam but, below ‘regex’ is working fine for me

.check(regex(""“var static_token = ‘(.*)’”"").saveAs(“Authtoken”)))