title: How to get a content from table rows as key/value pairs in regex only
body: <p>I have this table:</p>
  
  <pre><code>&lt;?php 
  $a ="&lt;table class='table table-condensed'&gt;
  &lt;tr&gt;
  &lt;td&gt;Monthely rent&lt;/td&gt;
  &lt;td&gt;&lt;strong&gt;Fr. 1'950. &lt;/strong&gt;&lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;tr&gt;
  &lt;td&gt;Rooms(s)&lt;/td&gt;
  &lt;td&gt;&lt;strong&gt;3&lt;/strong&gt;&lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;tr&gt;
  &lt;td&gt;Surface&lt;/td&gt;
  &lt;td&gt;&lt;strong&gt;93m2&lt;/strong&gt;&lt;/td&gt;
  
  &lt;/tr&gt;
  
  &lt;tr&gt;
  &lt;td&gt;Date of Contract&lt;/td&gt;
  &lt;td&gt;&lt;strong&gt;01.04.17&lt;/strong&gt;&lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;/table&gt;
  </code></pre>
  
  <p>What I need is to get the value of each <code>&lt;td&gt;</code> inside <code>&lt;tr&gt;</code> as key value pairs as in:</p>
  
  <pre><code>monthly rent =&gt; Fr. 1'950. 
  Rooms(s) =&gt; 3
  Surface =&gt; 93m2
  Date of Contract =&gt; 01.04.17;
  </code></pre>
  
  <p>So, far only this code returns some result close to what I need but not like the format I was expecting</p>
  
  <pre><code>preg_match_all("/&lt;td&gt;.*/", $a, $matches);
  </code></pre>
  
  <p>I am trying to find any improvements on this.</p>