I wrote a regular expression that parses a file path into different group (DRIVE, DIR, FILE, EXTENSION).
^((?[a-zA-Z]):\\\\)*((?[a-zA
I'd just use the FileInfo and Path classes to obtain the info.
FileInfo
Path
Should you choose to use a regex, then note that the regex doesn't match all legal filenames: There's a whole bunch of legal filename tokens missing from your regex.