title: Regex for a multiline string with PHP preg_match
body: <p>I'm trying to build a pattern for a multiline string, that must start with <code>&lt;?php</code> or <code>whitespace</code> + <code>&lt;?php</code> and <strong>NOT</strong> end with <code>?&gt;</code> or <code>?&gt;</code> + <code>whitespace</code>.</p>
  
  <p>My attempt was <code>/^\s?&lt;\?php.*[^&gt;]\s?$/s</code> but it did not work. Also tried the negative lookahead - no use.</p>
  
  <p>Any idea?
  Thanks in advance.</p>