http://www.google.com/search?q=prin...8&start=10&sa=N
that is the result of an $_SERVER['HTTP_REFERER'] variable. i'm trying to extract the search string. everything between "q=" and "&"
i notice that in some strings, the end of a google refer could end with the end of line also
sooo .. i need to extract between:
q= and &
or
q= and (end of line)
the idea here would be that i could do something like this:
do you think this can be done with string functions? or is it more of a job for regex?