Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Find in files in Visual Studio: all lines in files that contain 'abc' but don't contain 'xyz'

29 views
Skip to first unread message

Alex Vinokur

unread,
Feb 2, 2011, 4:04:54 AM2/2/11
to
Hi,

Visual Studio 2005

I need to find all lines in files that contain 'abc' but don't contain
'xyz'.

Any suggestion?

Thanks,

Alex

Alex Vinokur

unread,
Feb 2, 2011, 6:01:26 AM2/2/11
to
It should work something like grep in Unix"
grep abc *.* | grep -v xyz

Simon Trew

unread,
Jan 15, 2013, 3:51:23 AM1/15/13
to
regular expressions in the find winsdow. Find in Files, click for Regular expressions on, in the search term abc and not xyz. The regular expression syntax in that window is not the same as e.g. in perl, and that is why deliberately I don't type the characters, cos I'll have it wrong. But abc&&!xyz should be close, follow the help from control shift f.
0 new messages