|
Thanks Smiling Dragon;
Now i have this question
If i have a list of directories, for example:
/fs/pas/2007/4/6/2634210/admdat/examin
/fs/pas/2007/4/6/2634210/admdat2/stat
/fs/pas/2007/4/6/2634210/admdat3/data
/fs/pas/2007/4/6/2634210/im_2/0b.dcm
Now; my questions are:
1. How to use RE to extract the last file such as "examin and stat,..."?
2. How to use RE to extract the parent directory for the last file. such as "amdat, amdat2, im_2,..."?
3. How to use RE to extract the date in the middle "2007/4/6"?
|