I'd like to extract from the url of a Google search the keyword of the search (e.g. for the keyword "car" : http://www.google.com/webhp?hl=en#sclient=psy&hl=en&site=webhp&source=hp&q=car&aq ... (here car is between "q=" and "&aq" but I noticed that the tokens might change ["&ie" instead of "&aq"]).
Being new at regex and Google search I haven't found so far the solution, does someone know how to do this please ?
Bruno
Below sample code works for me for a single parameter and current URL but can be modified as per requirement.
just use it as shown below,
You don't need a regular expression for this. Modified from http://jquery-howto.blogspot.com/2009/09/get-url-parameters-values-with-jquery.html:
You can then do this: