Re: use preg_replace to nix and line with "display: none"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > $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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux