title: pcregrep for finding all files with extra space before php opening tag
body: <p>I have a working command line code using pcregrep for finding all PHP with space after closing tag:</p>
  
  <pre><code>pcregrep -rMl '\?&gt;[\s\n]+\z' *
  </code></pre>
  
  <p>I get that here: <a href="https://stackoverflow.com/questions/6126554/find-extra-space-new-line-after-a-closing-php-tag">Find extra space / new line after a closing ?&gt; (php tag)</a></p>
  
  <p>Now I want to know what is the equivalent command above finding all spaces before PHP opening tag at the beginning of the PHP file:</p>
  
  <pre><code>[SPACE HERE]&lt;?php 
  </code></pre>
  
  <p>If you know how to do this, please share thanks.</p>