Technically this only validates that "http:" or "https:" appears somewhere in the URL -- not necessarily at the beginning. You can use `\A` to anchor a regular expression to the start of the string.