i have some html codes, which contains these :
<table class="qprintable2" width="100%" cellpadding="4" cellspacing="0" border="0">
content goes here !
</table>
i have this function to match the tag inside
function getTextBetweenTags($string, $tagname)
{
$pattern = "/<table class=\"class1\" width=\"100%\" cellpadding=\"4\" cellspacing=\"0\" border=\"0\">(.*?)<\/$tagname>/";
preg_match_all($pattern, $string, $matches);
return $matches[1];
}
but it doesn't have, so i will be highly appreciate if you can give me a good pattern for this :(