Text Pattern Search and Replace in File

&NAME=&URL=http%3A%2F%2Fwww.airliquide.com/safety/msds/en/" ; $startpattern = ""id="_x0000" ; $endpattern = " " ; $page = file_get_contents("0NIHalphalist.php"); // $page2 = explode('*** MSDS, from the manufacturer or distributor ***', $page); $m = count($page2); // echo "The count of links on MSDS.php after the '*** MSDS' (var = page2) is " . $m . "
"; $pregresult = preg_replace( $startpattern, $endpattern, "", $page) ?>