title: PHP Regex to match multiline
body: <p>i need to build a pattern to match a multiline code</p>
  
  <pre><code>    $data['infos'] = array();
      foreach ($infos as $info) {
          $data['infos'][] = array(
              'title' =&gt; $special['title'],
              'text'  =&gt; $special['summary'],,
          );
      }
      $data['next'] = $this-&gt;url('page/next');
      $data['page'] = $this-&gt;url('page/curent');
  </code></pre>
  
  <p>my attempt was to use <code>(\$data\['infos']\[] = array\(\n).*\n\t.*\n\t*\)\;</code> but it did not work, but when i tried <code>(\$data\['infos']\[] = array\()</code> only this part was match </p>
  
  <p><code>$data['infos'][] = array(</code> </p>
  
  <p>how do i build the pattern to match this part only</p>
  
  <pre><code>        $data['infos'][] = array(
              'title' =&gt; $special['title'],
              'text'  =&gt; $special['summary'],,
          );
  </code></pre>
  
  <p>also i love to see it simple so that i can modify it for other similar case.have been on it for a whole day with no luck, kindly help me out.</p>
  
  <p>Thanks in advance.</p>