How to convert multiple
tag to a single
tag in php

后端 未结 9 1265
执念已碎
执念已碎 2020-12-03 02:03

Wanted to convert






into


9条回答
  •  执念已碎
    2020-12-03 02:32

    Thanks all.. Used Jakemcgraw's (+1) version

    Just added the case insensative option..

    {(]*>\s*)+}i
    

    Great tool to test those Regular expressions is:

    http://www.spaweditor.com/scripts/regex/index.php

提交回复
热议问题