Anyone know how to get the keyword from a google url
in php would use
$phrase = preg_match("/q=(.*?)&/",$url, $m);
Check out match and exec. Give it a go and if you encounter problems post what you attempted. :)
Hey that works awesome used
re = /q=(.*?)&/i;
found = str.match(re);
You guys know how just show it 1x?
Thanks for the reply man!
Hey this works!
Thanks so much :)
var myRe = /q=(.*?)&/g;
while ((myArray = myRe.exec(str)) != null)
var msg = myArray ;
What you're getting there is the full match.
If you only want the captured group, use myArray instead for
The things you can find out online.
Never fails to amaze me lol
Hey thanks so much for that last adjustment
works 100% awesome now