this little snippet will extract the URLs of google results.
no - not only from the results - it's actually a full search form.

download options for forms / google results

you can download the source as PHP file,

open the file as plain text in a new window or

get the code in a textarea to copy it.