How can I get or extract some string part from url jquery code example
Example 1: How can I get or extract some string part from url jquery
var citySearch = $.cookie('recentSearch');
citySearch.match(/_keywords=(.+)/)[1]
Example 2: How can I get or extract some string part from url jquery
var citySearch = $.cookie('recentSearch');
citySearch.match(/_keywords=(.+?)&/)[1]