From: "Peña, Botp" Date: 2005-04-29T12:01:10+09:00 Subject: Re: Is there a Ruby library that does HTML entity parsing? Ilmari Heikkinen [mailto:kig@misfiring.net] wrote: #This can also be done using File.split / dirname / basename: # #File.dirname "http://foo.com/bar/stuff.html" ##=> "http://foo.com/bar" # #File.basename "http://foo.com/bar/stuff.html" ##=> "stuff.html" # #File.split "http://foo.com/bar/stuff.html" ##=> ["http://foo.com/bar", "stuff.html"] # #File.join( File.dirname("http://foo.com/bar/doc.html"), #"relative_link.html" ) ## => "http://foo.com/bar/relative_link.html" cool pols, there. thanks for the tip. # #Though that probably breaks on Windows since it has backslashes for #directory separators. i'm happy to tell you that it does not. surprise :-) kind regards -botp # #Cheers, #Ilmari Heikkinen # #