Re: [PHP] Regex to catch <p>s

[email protected] ("Eric Butera")
Newsgroups php.general
Message-ID <[email protected]>
On Mon, May 5, 2008 at 9:59 PM, Ryan S <[email protected]> wrote:
>  To say I suck at regex is an understatement so really need any help I can get on this, I have a page of text with different html tags in them, but each "block" of text has a <p> or a < class="something"> tag... anybody have any regex that will catch each of these paragraphs and put then into an array


If you're using php5 you can use DOM's getElementsByTagName.

If you still think you need to do some sort of regex it is possible
but it will be buggy at best.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.