faqts : Computers : Programming : Languages : PHP : Common Problems : Regular Expressions

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 3 people (67%) answered Yes
Recently 1 of 2 people (50%) answered Yes

Entry

How can I replace all sequences of <li> with a single <li>?

Jun 9th, 1999 07:00
Nathan Wallace, Michael Stearne, Jason Brooke


eregi_replace("((<li>){2,})","<li>",$theList)