This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygcheck and literal plus sign


> >    $ cygcheck -p 'g\+\+.exe'
> >    Found 0 matches for g\ \ .exe
> >
> >How can I include a literal '+' (plus character) in my search?
> 
> By remembering that this is a regex search.  How do you quote special characters
> in regexes?  Answer: With a '\'.

That's what he did.  The single quotes protected the \'s from
interpretation by the shell, so cygcheck received the regex: g\+\+.exe


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]