I have the following URL:
I only need to extract Rome from the url. So far I have managed to do this:
var citySearch = $.cookie('recentSearch');
citySearch.match(/_keywords=(.+)/)[1]
where citySearch the url.
This only returns "Rome%2C+Italy&country=Italy&city=Rome&date_from=2016-07-02&date_to=2016-07-05 "