Never mind. I tried it with str_ireplace and it worked.
--- In [email protected], "David" <[EMAIL PROTECTED]> wrote: > > Hi > > I am trying to to a string replace using ereg_replace. I want to > replace <UL> with on string and </UL> with another. The problem > I'm having is the replace I'm making on the <UL> tag is also > happening to the </ul> tag. Here are my two eregs > > > $description = eregi_replace ("<UL>" , "<table > class=\"ul-container\"><tr><td><ul class=\"description\">", > $description); > > > $description = eregi_replace("</ul>" , "</ul></td></tr></table>", > $description); > > I have tried stuff like "\<\/ul\>" but that didn't work either. > > Can someone tell me how to have it match the complete tag and not just > the "UL" piece of it? > > Thanks > > David >
