$regex = "/<[^>]+>\s(.*)\s+(?=<[^>]+pt10 pb5">)/i";
$str = "</div>
Quick and delicious appetizer with mince and bread for your feast menu. You can serve these mouth watering strips as a snack with noon tea.
<div class="pt10 pb5">";
在regex101和regexr上测试并且在两者上工作正常但没有使用php函数,我也试图找到任何我需要逃脱但没有找到任何东西的角色。 提前求助