Verify that the URL is a valid Google URL

I want to check if the url is a valid google url

(e.g. http://www.google.com/#sclient=psy&hl=en&site=&source=hp&q=car&aq=f&aqi=&aql=&oq=&pbx=1&bav=on.2,or.r_gc.r_pw.&fp=8f6073eaa2ffaabcbi 1280 & bih = 868 is a valid URL for Google to search for the word “car,” whereas http://www.google.com/#sclient=psy&hl=en&site=&sourciw=1280&bih=868&fp=1&bav=on.2,or.r_gc. r_pw. & cad = b not [blank page displayed])

Does anyone know how to do this? (regular expression, validator, ...)

+3
source share
1 answer

q:

/[?&]q=[^&]+/

, :

/[?&]q=([^&]+)/



, , " " URL-:

/[#&]q=([^&]+)/

+2

All Articles