If I have a string like W:\ABC\F1.bak, is there any way to capture just W:\ABC, it is not necessary that it could be just W:\ABC, it could be W:\ABCD as well, the main intention is that if there are 2 backslashes in the entire string, I would like to capture the entire text before the second backslash or in other words i want to caapture the entire string except .bak, .trn and so on.Any help would be Highly Appreciated.
↧