I have a file in plain text format that contains paths, one per line, such as:
c:\asdf
c:\asdf\qwerty
c:\Windows
etc...
I'm trying to find a way to search this file for any line that does NOT start with "c:\"
Any ideas?
Thanks
Welcome to the IDM Forum. This forum is meant as a user-to-user support mechanism where users can share knowledge and tips for all IDM software.
Since these forums are user-to-user based, IDM does not regularly read or reply to the posts in this forum. For problem reports, suggestions, or feature requests, you must email us directly. Our trained technical support staff answers most inquiries within 30 minutes.
^ ......... start of a line
(x|y|z) ... OR expression with 3 arguments
[^c] ...... first OR argument matches all lines not starting with character 'c'.
c[^:] ..... second OR argument matches all lines starting with character 'c'
but second character is not a ':'.
c:[^\\] ... third OR argument matches all lines starting with "c:"
but third character is not a '\'.
.*$ ....... matches the rest of the line without the line termination
characters (CRLF for DOS).
