Do I use regex on this string - c#
- by uno
I have to strip a file path and get the parent folder
say my path is
\\ServerA\FolderA\FolderB\File.jpg
I need to get
1. File Name = File.jog
Folder it resides in = FolderB
And parent folder = FolderA
I always have to go 2 level up from where the file resides.
Is there an easier way or is regex the way to go?