Will not match http://localhost:3000/.

I would suggest matching against `%r(^\w+://\w)`.