Also your regexp check for httpp(s): but add extra // so it can result into ////. Maybe you want to check that too?