Aşağıdaki bir dizi göz önünde bulundurun:
/www/htdocs/1/sites/lib/abcdedd
/www/htdocs/1/sites/conf/xyz
/www/htdocs/1/sites/conf/abc/def
/www/htdocs/1/sites/htdocs/xyz
/www/htdocs/1/sites/lib2/abcdedd
Bu durumda - tespit common base path en kısa ve en zarif yolu nedir
/www/htdocs/1/sites/
ve dizideki tüm öğelerin çıkarmadan?
lib/abcdedd
conf/xyz
conf/abc/def
htdocs/xyz
lib2/abcdedd