Parse filename from full path using regular expressions in C#
- by WindyCityEagle
How do I pull out the filename from a full path using regular expressions in C#?
Say I have the full path C:\CoolDirectory\CoolSubdirectory\CoolFile.txt.
How do I get out CoolFile.txt using the .NET flavor of regular expressions? I'm not really good with regular expressions, and my RegEx buddy and me couldn't figure this one out.
Also, in the…