I want `http://www.foo.com/bar.html` from `http://www.foo.com/bar.html?key=value...`.

A regexp should do the work. Is there some module to do this? I checked [URI](http://p3rl.org/URI), it seems does not have such sub.