Hi --

On Tue, 13 Aug 2002 dblack / candle.superlink.net wrote:

> To do what you were trying to do, try this:
>
>   irb> "http://www.x.com/y/z.html".sub(%r|/[^/]+/?\.html$|, '')
>   "http://www.x.com/y"

Whoops, having seen Mauricio's I now see a meaningless "/?" has
slipped into mine :-)


David

-- 
David Alan Black
home: dblack / candle.superlink.net
work: blackdav / shu.edu
Web:  http://pirate.shu.edu/~blackdav