Js intercepts strings

ask for help, intercept the value after token
the processing method I use is a bit tedious, is there a sentence of code that can solve

clipboard.png


var token=url.split ("token=") [1];


a.substring (a.indexOf ('token=') + 6) or [.a.split (' token='),'] [1]


url.match(/[^=]*$/i);

url.match (/ (\?) token= (. *) (& | $) /) [2] <

Menu