using regexp for file name in Search dialog

I am looking into separating unit and integration tests in a project and I want to find usages of a certain string  - say, "ABC" in all files in the project that are named *, but not in *
in other words, I want to find string "ABC" only in tests that pretend to be unit-tests but are in fact integration-style.

so to do this I was looking at "Find in path" dialog in IDEA and I tried entering regex values for "File name" field.
that did not work. the Help shown by that dialog says only wildcards are allowed.

what would be the best way to achieve this in IDEA? (well, apart from reverting to command line grep :) )

Comment actions Permalink

You could probably achieve this by using a custom scope.


Comment actions Permalink

great, looks like this scope expression is what I need:



Please sign in to leave a comment.