Good evening dear community,
i need some help with preg_match - i want to optimize the code that allready runs very well! i want to get ony the results - not the overhead of HTML-tags in the result That means i have to tailor the regex a bit. How can i improve the (allready very nice) code!?
<?php
$content = file_get_contents("< - URL - >");
var_dump($content);
$pattern = '/<td>(.*?)<\/td>/si';
preg_match_all($pattern,$content,$matches);
foreach ($matches[1] as $match) {
$match = strip_tags($match);
$match = trim($match);
var_dump($match);
}
?>
See here the url: link text
Hmm - i need to tailor the regex a bit... Cany anybody give me.
Each idea and tipp will be greatly appreciated regards zero