> > $pattern = '|^.+?display:none.+?$|mi';
> 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.


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to