title: regextype with find command
body: <p>I am trying to use the find command with <code>-regextype</code> but it could not able to work properly.</p>
  
  <p>I am trying to find all <code>c</code> and <code>h</code> files send them to pipe and grep the name, <code>func_foo</code> inside those files. What am I missing? </p>
  
  <pre><code>$ find ./ -regextype sed -regex ".*\[c|h]" | xargs grep -n --color func_foo
  </code></pre>
  
  <p>Also in a similar aspect I tried the following command but it gives me an error like paths must precede expression: </p>
  
  <pre><code>$ find  ./  -type  f  "*.c"  |  xargs  grep  -n  --color  func_foo
  </code></pre>