crazy regex w/ https support