Visual Studio Find and Replace Regular Expressions ~ find lines with quoted strings, not containing

Posted by Darkoni on Stack Overflow See other posts from Stack Overflow or by Darkoni
Published on 2010-04-20T10:41:29Z Indexed on 2010/04/20 10:43 UTC
Read the original article Hit count: 754

Visual Studio Find and Replace Regular Expressions

Find lines with quoted strings, not containing strings include or trace

i am tryling to find out all lines in c++ project that contains some text

as i have to use visual studio, i have to use its Find and Replace

http://www.codinghorror.com/blog/2006/07/the-visual-studio-ide-and-regular-expressions.html

so, for finding all lines like: print("abc"); it is enogh to write

:q

and it will find all quotted strings

ok, but i also get lot of lines like #include "stdio.h" and trace("* step 1 *")

i find out regex to get all lines containing include and trace

<include|trace>

so, mine question is, how to find all lines with "quotted strings" but NOT lines that contains strings include and trace.

thanx

© Stack Overflow or respective owner

Related posts about visual-studio-2008

Related posts about regex