I'm trying to create regex to match the path of the file, excluding the file itself and drive.
c:\foo\bar\baz.txt
C:\FOO\BAR\BAZ.TXT
C:\FoO\BaR\BaZ.TxT
and so on.
Expression should match `foo\bar` (IN any CaSe).
The basic example I have is
\\.*\\
Another example is
\\.*(?=\\)
But I'm not sure I'm on the right way.
Live version is here: https://regexr.com/4kmu0