title: HTML tags not shown in result captured from PHP regular expression
body: <p>I am trying to extract everything inside the <code>&lt;HostProperties</code>> tag. I use this regex in python and it works fine but when I use this regex in PHP it ignores every other tag inside the <code>&lt;HostProperties&gt;</code> tag and gives the output shown below.</p>
  
  <p>My input is:</p>
  
  <pre><code>&lt;HostProperties&gt;
  &lt;tag name="cpe-1"&gt;cpe:/a:microsoft:iis:8.5&lt;/tag&gt;
  &lt;tag name="HOST_END"&gt;Fri May  6 07:15:32 2016&lt;/tag&gt;
  &lt;tag name="LastUnauthenticatedResults"&gt;1462533332&lt;/tag&gt;
  &lt;tag name="Credentialed_Scan"&gt;false&lt;/tag&gt;
  &lt;tag name="policy-used"&gt;Advanced Scan&lt;/tag&gt;
  &lt;tag name="patch-summary-total-cves"&gt;16&lt;/tag&gt;
  &lt;tag name="cpe"&gt;cpe:/o:microsoft:windows&lt;/tag&gt;
  &lt;tag name="os"&gt;windows&lt;/tag&gt;
  &lt;tag name="cpe-0"&gt;cpe:/o:microsoft:windows_server_2012:r2::datacenter&lt;/tag&gt;
  &lt;tag name="system-type"&gt;general-purpose&lt;/tag&gt;
  &lt;tag name="operating-system"&gt;Microsoft Windows Server 2012 R2 Datacenter&lt;/tag&gt;
  &lt;tag name="mac-address"&gt;34:40:b5:a1:be:8a&lt;/tag&gt;
  &lt;tag name="traceroute-hop-0"&gt;172.23.144.5&lt;/tag&gt;
  &lt;tag name="host-ip"&gt;172.23.144.5&lt;/tag&gt;
  &lt;tag name="netbios-name"&gt;PKLHODC03&lt;/tag&gt;
  &lt;tag name="HOST_START"&gt;Fri May  6 07:05:56 2016&lt;/tag&gt;
  &lt;/HostProperties&gt;
  </code></pre>
  
  <p>My PHP regex code:</p>
  
  <pre><code> preg_match_all("#(?&lt;=(&lt;HostProperties&gt;))((?:.|\n)*?)(?=&lt;/HostProperties)#s", $reading, $host_properties);
  
  
                      echo "&lt;pre&gt;";
  
                      var_dump($host_properties[2]);
  
                      echo "&lt;/pre&gt;";
  
                      echo "&lt;br&gt;";
  </code></pre>
  
  <p>My output is:</p>
  
  <pre><code>cpe:/a:microsoft:iis:8.5
  Fri May  6 07:15:32 2016
  1462533332
  false
  Advanced Scan
  16
  cpe:/o:microsoft:windows
  windows
  cpe:/o:microsoft:windows_server_2012:r2::datacenter
  general-purpose
  Microsoft Windows Server 2012 R2 Datacenter
  34:40:b5:a1:be:8a
  172.23.144.5
  172.23.144.5
  172.23.144.5
  172.23.144.5
  PKLHODC03
  Fri May  6 07:05:56 2016
  </code></pre>
  
  <p>My expected output is:</p>
  
  <pre><code> &lt;tag name="cpe-1"&gt;cpe:/a:microsoft:iis:8.5&lt;/tag&gt;
   &lt;tag name="HOST_END"&gt;Fri May  6 07:15:32 2016&lt;/tag&gt;
   &lt;tag name="LastUnauthenticatedResults"&gt;1462533332&lt;/tag&gt;
   &lt;tag name="Credentialed_Scan"&gt;false&lt;/tag&gt;
   &lt;tag name="policy-used"&gt;Advanced Scan&lt;/tag&gt;
   &lt;tag name="patch-summary-total-cves"&gt;16&lt;/tag&gt;
   &lt;tag name="cpe"&gt;cpe:/o:microsoft:windows&lt;/tag&gt;
   &lt;tag name="os"&gt;windows&lt;/tag&gt;
   &lt;tag name="cpe-0"&gt;cpe:/o:microsoft:windows_server_2012:r2::datacenter&lt;/tag&gt;
   &lt;tag name="system-type"&gt;general-purpose&lt;/tag&gt;
   &lt;tag name="operating-system"&gt;Microsoft Windows Server 2012 R2    Datacenter&lt;/tag&gt;
   &lt;tag name="mac-address"&gt;34:40:b5:a1:be:8a&lt;/tag&gt;
   &lt;tag name="traceroute-hop-0"&gt;172.23.144.5&lt;/tag&gt;
   &lt;tag name="host-ip"&gt;172.23.144.5&lt;/tag&gt;
   &lt;tag name="netbios-name"&gt;PKLHODC03&lt;/tag&gt;
   &lt;tag name="HOST_START"&gt;Fri May  6 07:05:56 2016&lt;/tag&gt;
  </code></pre>
  
  <p>Why is my output different from what I expect?</p>