global l;
l={};
listFolder('amar/left',0);

expr='/';
reps={};
for i=1:numel(l)
    tok = regexp(l{i}, expr,'split');
    reps{i, 1}=tok;
end
reps{:};