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

2009-08-09 Thread Ben Dunlap
> > $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

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

2009-08-08 Thread LinuxManMikeC
On Sun, Aug 9, 2009 at 12:17 AM, Rob Gould wrote: > I wish I could say this works, but I'm not having success with this pattern. >  All the lines with display: none are still in the $bl string. > > On Aug 9, 2009, at 1:50 AM, LinuxManMikeC wrote: > > Reserved Frontstretch > > Tower Ticket to the Ca

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

2009-08-08 Thread Rob Gould
Yay! That worked. Thanks! On Aug 9, 2009, at 1:53 AM, Michael A. Peters wrote: Rob Gould wrote: I have a bunch of bullets in a list coming from a previous post, and I need to eliminate any line from this string that contains "display: none" Reserved Frontstretch Tower Ticket to the Cam

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

2009-08-08 Thread Rob Gould
I wish I could say this works, but I'm not having success with this pattern. All the lines with display: none are still in the $bl string. On Aug 9, 2009, at 1:50 AM, LinuxManMikeC wrote: Reserved Frontstretch Tower Ticket to the Camping World 300 on Saturday Reserved Frontstretch T

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

2009-08-08 Thread Michael A. Peters
Rob Gould wrote: I have a bunch of bullets in a list coming from a previous post, and I need to eliminate any line from this string that contains "display: none" Reserved Frontstretch Tower Ticket to the Camping World 300 on Saturday Reserved Frontstretch Tower Ticket to the Daytona 500 on

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

2009-08-08 Thread LinuxManMikeC
On Sat, Aug 8, 2009 at 11:14 PM, Rob Gould wrote: > I have a bunch of bullets in a list coming from a previous post, and I need > to eliminate any line from this string that contains "display: none" > > > Reserved Frontstretch > Tower Ticket to the Camping World 300 on Saturday > Reserved Frontstr

[PHP] use preg_replace to nix and line with "display: none"

2009-08-08 Thread Rob Gould
I have a bunch of bullets in a list coming from a previous post, and I need to eliminate any line from this string that contains "display: none" Reserved Frontstretch Tower Ticket to the Camping World 300 on Saturday Reserved Frontstretch Tower Ticket to the Daytona 500 on Sunday