Jump to content

AndrewBacca

Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Everything posted by AndrewBacca

  1. solved it for referance if any ones needs it $expres = "{<loop[^>]*>(.*?)</loop[^>]*>}"; $this->output = preg_replace($expres, "", $this->output);
  2. I have a templating system and I need/want to after the page has gone through the system remove un used "tags" an example is <loop:plists[].sublist> <ul> <li class="subcatlist"> <a href="<tag:plists[].sublist[].plink/>"><span><tag:plists[].sublist[].name/></span></a> </li> </ul> </loop:plists[].sublist> I want to be able to search for <loop:plists[].sublist> and remove everything after that until it finds the closing tag </loop:plists[].sublist> Baring in mind that "plists[].sublist" bit will change from page to page and I want to remove the tags aswell. I hope that all makes sence, thanks alot for any help you can give me Andrew
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.