You can try M-x rgrep
.
It will ask for:
- the directory where you want to search recursively
- a file pattern for the files you want to include in the search
- the pattern you want to search
As an extra, it will exclude source control private directories from your search (like CVS, .svn or .git).