At the moment I am doing this:
var token = document.location.href.split('?_sft_category=')[1];
Which is ok if my URL is:
http://www.example.com/xchanges/results/?_sft_category=sky
I get sky
in that case as a var, but if my URL becomes
http://www.example.com/xchanges/results/?_sft_category=sky#comboFilters%5BAgency%5D=.TBWA
In that case I obviously get everything after =
while instead I would like to get ONLY the first string after '?_sft_category='