Carthik Sharma wrote: >>>This regex stuff is a dark art. I got the path thing now and it works ( a big >>>thank you :)) but I still have one last regex problem. >>> >>> /home/dave/[^/]+?/data >>> >>>excludes the data directorys but also my 'data_process' directories Try /home/dave/[^/]+?/data[^_] (assuming there are no other data_* files). Toby