title: How can I extract the content of a <tr> tag in PHP?
body: <p>i am new to regex. i would like to ask what would be the right combination for this html tag:</p>
  
  <pre><code>   &lt;tr class="calendar_row" data-eventid="39654"&gt;
        &lt;td class="alt1 eventDate smallfont" align="center"/&gt;&lt;/td&gt;
        &lt;td class="alt1 smallfont" align="center"&gt;3:34am&lt;/td&gt;
        &lt;td class="alt1 smallfont" align="center"&gt;CNY&lt;/td&gt;
     &lt;/tr&gt;
  </code></pre>
  
  <p>I am using this:</p>
  
  <pre><code>   $html = website html from a url
     $match = array();
  
     $pattern = "/(&lt;tr.*?\data-eventid\&gt;.*?&lt;\/tr&gt;)/ims";
     preg_match_all($pattern, $html, $match);
  </code></pre>
  
  <p>But it's not working :|
  I just want to select all the content of that tr element..</p>
  
  <p>Best Regards.</p>