>>>>> "Z" == Zakaria  <zak_mail / yahoo.com> 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