I am developing own CMS and need to replace custom tags with proper php function.
my custom tags are like <cms:zone id="header" anotherAttr="attrValue" />
the <cms:xxx />
part is important to me.
so far i wrote this regex but its not working fine. <cms:?([\S|\s]*)\/>
<body>
<cms:content id="footer" />
<cms:zone id="header" />
</body>
it will match
<cms:content id="footer" />
<cms:zone id="header" />