I enter from the console the path to the directory in which I want to search for certain files. I need a regex that only matches directory paths, not file paths. For example,
"C:\directory", "C:\directory\another", "D:\directory\", "D:\"
must match.
"C:\directory\file.txt", "D:\another.pdf"
should not match.