From: ts Date: 2001-09-01T22:34:54+09:00 Subject: [ruby-talk:20667] Re: Relative path >>>>> "Z" == Zakaria writes: Z> def strip_common_dir(path1, path2) Z> if path1+"\t"+path2 =~ %r{^(.*/)(.*?)\t\1(.*)$} path1 = "/temp/foo\t/temp/foo" path2 = "/temp/foo/temp/foo/dir/another_dir/" Guy Decoux