title: Find with regex
body: <p>i'm beginning in bash script but here is my problem</p>
  
  <p>i've been struggling with the find.</p>
  
  <p>When i do <code>find . ! -regex ".*(jpeg|jpg|gif|pdf)+$"</code>
  the find can't find anything though there is actually files not with this extension. As if it doesn't recognize the regex group</p>
  
  <p>I've found <code>find . ! \( -name '*.jpeg' -o -name '*.jpg' -o -name '*.gif' \)</code></p>
  
  <p>My question is : Is there not a better way to do this ?</p>