ich habe folgenden Code:
- Code: Select all
<?php
echo "<hr>";
$text = "<pre>d </pre><pre>nigger</pre>";
preg_match_all("/<pre>(.*?)<\/pre>/ims", $text, $matches);
echo 'matches: ';
foreach($matches[1] as $match) {
echo $match;
}
echo "<hr>";
ich weiß, was der code macht, nur verstehe ich speziell folgende zeile nicht:
- Code: Select all
preg_match_all("/<pre>(.*?)<\/pre>/ims", $text, $matches);
bzw.:
- Code: Select all
"/<pre>(.*?)<\/pre>/ims"
Habt ihr ein paar Tipps ?