Replace UL tags with specific class

pletcherzqv

New Member
I'm trying to replace all ul tags with a level0 class, something like this:\[code\]<ul> <li>Test <ul class="level0"> ... </ul> </li></ul>\[/code\]would be processed to \[code\]<ul> <li>Test</li></ul>\[/code\]I tried \[code\]$_menu = preg_replace('/<ul class="level0">(.*)<\/ul>/iU', "", $_menu); \[/code\]but it's not working, help?Thanks.Yehia
 
Back
Top