javascript regular expression for google search results

I am trying to run a js code when the window.location.href points towards a google search result using search result.

if(window.location.href==<regex of google search result>){
......
}

I am new to regex so please help me with it