I have text that I need to extract all file or folder paths (bold text below).
Unquoted paths have no spaces and need to be matched as well as quoted paths.
This is DOT.NET regex flavor in C#.
“C:FutureCode In Progress” arbitrary unmatched text C:DataCode v:BlessTest.txt “D:APPZBam BamMalkop.mp3”
The regex below matches the quoted paths without issue so now I need to match the unquoted paths. Also the regex for the unquoted paths need to ensure the path isn’t preceded by a quote to eliminate match redundancies.
Regex.Matches (input, @"""[a-zA-Z]:\.*?""", RegexOptions.IgnoreCase)
The regex: @””[a-zA-Z]:.*?”” isn’t working. What am I doing wrong here?