This is regex for website url matching scheme,host,port,path and query. I did it because in c#, class Uri does not understand urls without scheme and says that 'google.com' is invalid url.