title: Using regex in find command for multiple file types
body: <p>I am currently using   </p>
  
  <pre><code>find . -name '*.[cCHh][cC]' -exec grep -nHr "$1" {} ; \
  find . -name '*.[cCHh]' -exec grep -nHr "$1" {} ;
  </code></pre>
  
  <p>to search for a string in all files ending with .c, .C, .h, .H, .cc and .CC listed in all subdirectories. But since this includes two commands this feels inefficient.</p>
  
  <p>How can I use a single regex pattern to find .c,.C,.h,.H,.cc and .CC files?</p>
  
  <p>I am using bash on a Linux machine.</p>