View Single Post
Old 03-23-2008, 03:15 PM   #6 (permalink)
Geert
The Contributor
RegEx Guru 
 
Join Date: Dec 2007
Location: Belgium
Posts: 60
Thanks: 6
Geert is on a distinguished road
Default

Worked out WildHoney's regex a bit further. Now also allows newlines inside p elements, as well as html attributes.

Code:
#<p\b[^>]*+>(.+?)</p>#is
__________________
Kohana - PHP5 framework
Geert is offline  
Reply With Quote