📅  最后修改于: 2022-03-11 14:53:53.251000             🧑  作者: Mango
$str = "This is one
This is two
This is three
";
$pattern="/(]*>(.*)<\/p>){2}/isU";
preg_match($pattern,$str,$matches);
echo htmlentities($matches[0]);