title: preg replace not working with file_get_content - removing brackets() & replacing words
body: <pre><code>&lt;?php 
  $file = file_get_contents("http://www.mywebsite.net/folder/indexhtml.asp");
  preg_match_all('~&lt;td width="23%" height="23" align="right"&gt;(.*?)&lt;/td&gt;~is',$file, $matches5);
  print implode("\n", $matches5[0]);       //This prints out (Page: 889) on website ?&gt;
  </code></pre>
  
  <p>I am trying to remove brackets and the word “Page” with “Number” from string called matches5 variable </p>
  
  <p>Everytime I use this code below its shows blank which leaves me very confused. Please help me someone as im new to PHP
  Second code</p>
  
  <pre><code>&lt;?php
  
  $file = file_get_contents("http://www.mywebsite.net/folder/indexhtml.asp"); 
  preg_match_all('~&lt;td width="23%" height="23" align="right"&gt;(.*?)&lt;/td&gt;~is',$file,  $matches5); 
  $result = preg_replace('/(?&lt;=^| ).(?=$| )/sm', '', $matches5); 
  print implode("\n", $result[0]);
  
  ?&gt;
  </code></pre>