preg_match Regex wont find matches (but it works on regex101)
<p>Here is my regex101 example which works : <a href="https://regex101.com/r/fE6rO9/2" rel="nofollow">https://regex101.com/r/fE6rO9/2</a> (you have to wait a few secondes because it's big )</p>

<p>here is my PHP </p>

<pre><code>    $content = htmlentities($contentCode);
    /* correct echo when i copy paste it into regex101 */
    echo $content;

    // copy past from regex101
    $re = "/&lt;\\/form&gt;&lt;table class=\"forumline\" width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\"&gt;(.*)&lt;\\/table&gt;&lt;table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"&gt;/"; 

    preg_match($re, $content, $matches);

    var_dump($matches);
</code></pre>

<p>but when i run it, it echoes : </p>

<pre><code>array (size=0)
  empty
</code></pre>

<p>Any idea what the problem is ? </p>

<p>This is the regex taken appart : </p>

<pre><code>"/&lt;\\/form&gt;&lt;table class=\"forumline\" width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\"&gt;(.*)&lt;\\/table&gt;&lt;table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"&gt;/"; 
</code></pre>