title: grep with regex in pre-commit git hook
body: <p>I'm writing a little pre-commit hook to check for debug code this works well when using:</p>
  
  <pre><code>FORBIDDEN='console.log'
  </code></pre>
  
  <p>but when I change to:</p>
  
  <pre><code>FORBIDDEN='die(|console.log(|print_r('
  </code></pre>
  
  <p>it fails to catch anything.</p>
  
  <p>FULL CODE:</p>
  
  <pre><code>FILES_PATTERN='(\..+)?$'
  FORBIDDEN='die(|console.log(|print_r('
  
  git diff --cached --name-only | \
      grep -E $FILES_PATTERN | \
      xargs grep -E --with-filename -n $FORBIDDEN | \
      grep -v '//';
  </code></pre>
  
  <p>Not sure if its regex or something else</p>