Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you find all files with two separate words?

In VS2010, what would be the regular expression for 'Find in Files' to search for all source files that contain two separate words regardless of line breaks?

For Example I want to find any source file that contains 'This' and 'That'.

I tried something like this but it did not work:

((This).* \n* .*(That))

like image 466
Bud Avatar asked Feb 24 '12 21:02

Bud


1 Answers

I find it easier to just do this, eg:

select|insert|update|delete

Note: VS's search needs to be set to use regular expressions. The order of the words does not matter.

So, we end up with something like this: enter image description here

EDIT: To find a list, just do "Entire Solution", and then "Find all". enter image description here

enter image description here

like image 127
Fred Avatar answered Nov 07 '22 12:11

Fred