I agree with browny
and, since you can't nest p tags... you just need to make sure your regex is "ungreedy" by using a U modifier.
I can't remember if < and > are special in regex, so one of the following should work...
Code:
$pattern = '/\<p\>(.+)\<\/p\>/isU';
//or
$pattern = '/<p>(.+)<\/p>/isU';
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --