Make url validation more flexible.

This regular expression can support the url format below:
- www.google.com
- http://www.google.com
- mailto:somebody@google.com
- somebody@google.com
- www.url-with-querystring.com/?url=has-querystring