This article explains how to find any file containing specific text on Linux.
This article explains how to filter queries using Regular Expressions.