Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试运行这个正则表达式但失败了。有人可以指出我做错了什么吗?
$return = "<list>{eated}</list><full><b>Eated:</b> {eated}<br>" ."<b>Liked Me:</b> {likeme}<br><b>Seen:</b> {seen}<br>{image}</full>"; echo preg_replace("%<list.*?</list>%i", "", $return);
发现我的错误。
echo preg_replace('/(<list>.+?)+(<\/list>)/is', '', $return);
替换标签及其内容就好了。