Is it necessary to support scheme-less URLs like "//example.com/foo.js"? If so, this regex may need to be tweaked.