PHP Regex iyi çalışıyor - şimdi ben biraz terzilik gerekir

0 Cevap

İyi akşamlar sevgili toplum,

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);
}

?>

Burada url bakın: link text

Hmm - i Regex biraz terzi gerekir ... Cany kimse bana ver.

Each idea and tipp will be greatly appreciated regards zero

0 Cevap