Hrm, this error mesage is not correct. The regex can fail because there is a scheme but the host does not have a full path.