On Wed, Jan 12, 2011 at 8:55 AM, Dan Cech <dc...@phpwerx.net> wrote:

> Shouldn't the expression be:
>
> $blockpattern='/<p[^>]*>.*?<\/p>/';
>
> I removed the * after the first p.

I'm sure that could be the case, but I figured out the problem,
literally just as your reply hit my inbox. The paragraphs had line
returns in them. I stripped those out with str_replace and now the
original regex works.

-- 
Randal Rust
R.Squared Communications
www.r2communications.com
www.facebook.com/r2communications
614-370-0036
_______________________________________________
New York PHP Users Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

http://www.nyphp.org/Show-Participation

Reply via email to