> > $pattern = '|^.+?display:none.+?$|mi'; [8<] > I found your use of ? rather... creative... Anyway, just add the You mean the non-greedy flag? I think that's necessary the way the regex was originally formulated -- without it, ".+display" would gobble up all of the list-items until the last one. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php