I'm trying to get a text from html page using preg_match but I only receive an empty result. I try to place my code to a static test code and receive empty result also. Can someone look and help me fix it. This is the code I try to use :
<?
$sPattern = "/<id=\"m1\"> </a> <span class=\"info-text\"> (.*?) <\/span>/s";
$sText = "blah blah blah <id=\"m1\"> </a> <span class=\"info-text\">Testing </span> blah blah blah";
preg_match($sPattern,$sText,$aMatch);
echo '<pre>'.$aMatch[1].'</pre>';
?>