Extended to support https and ftp
Extra '?' in regexp