Hi I need a regex that gets the extension of a path, but if it doesnt have an extension it shows nothing or the word "Blank"(<-preferred output)
Here is what I have it works great for paths with extensions but if the path doesnt have an extension I get a full path name showing up when I export to CSV
What I have: Extension = $matches.fullname -replace '..(.)','$1'
Example
\Server\ShareFile\RootFolder1.2.3\Folder1.2.3\Subfolder2\Excel.csv
In this case it would get just .csv
\Server\ShareFile\RootFolder1.2.3\Folder1.2.3\Subfolder2\RandomFileNoExtension
In this case it would show nothing or if possible "Blank"