This is probably pretty simple for Regular Expression experts like you guys. So thanks a lot in advance. I am trying to extract the fully-qualified path of the parent folder of a file.
For example, if I have a fully-qualified path for a file "C:\Temp\Stuff\test.txt", I want to have a regular expression that will return me the string "C:\Temp\Stuff". Ideally this will need to work on files with or without extensions. Any help is greatly appreciated. Thanks a lot!