Im very bad when it comes to javascript.

Anyone know how to get the keyword from a google url

Example url
Code:
http://www.google.com/search?q=javascript+regex+examples&ie=utf
want to extract javascript+regex+examples
in php would use

PHP Code:
$url 'http://www.google.com/search?q=javascript+regex+examples&ie=utf';
$phrase preg_match("/q=(.*?)&/",$url$m);
echo 
$m[1]; 
Anyone know how to use that regex in Javascript?

Thanks