Hi - I am trying to pull a single folder name from the middle of a full path variable. For example, if:
Path = \RootFolder\SubLevel1\SubLevel2\SubLevel3\LastFolder
I can grab the first folder name or the last folder name, but I can't seem to successfully pull one of the "SubLevelX" folder names. If anyone has a regex snippet that can pull the string from between "\" and "\" where I can specify the index number of "\", it would be much appreciated.
So, for example the string between the 3rd "\" and 4th "\" equals "SubLevel2".
Thanks, .... Steven.