Hi, I have following example:
C:\C4\trunk\Catalog\bvh\dance\dance2.bvh
and I need to extract last folder name (dance). The variable parts are - last folder name and file name, so text can be
C:\C4\trunk\Catalog\bvh\sit\sit_female.bvh (result should be "sit")
C:\C4\trunk\Catalog\bvh\sit\sit_male.bvh (result should be "sit")
C:\C4\trunk\Catalog\bvh\battle\shoot.bvh (result should be "battle")
Thanks,
-Lev