Only codes for Google are known at this time. Sorry!
^http://www.google..*?/search\?.*q=(.*)&.*$//*[@class='g' and not(//p[class='g'])]descendant::a/@href&q=(.*?)&e=
Nerds: If you figure out the XPATH and RegExps for other search engines, please use the contact link to email me and I'll add it to this page.