Michel ( Dagnan ) wrote: > Hi! > > I have to collect urls from html files, I to transform relative urls to > absolute, I have to handle for example url beginning with '../' and > './', which is kind of ennoying :D (my head hurts because of the > debugging process) > > Actually, I test every case using regexp. Maybe you can help me finding > something faster? If you can shoe-horn your problem into Mechanize, it's got a private method WWW::Mechanize#to_absolute_uri, which does precisely this. Don't know if that's of any use, but it might be worthwhile looking at how it's implemented at least. -- Alex